Search in sources :

Example 1 with CallIdSequenceWithBackpressure

use of com.hazelcast.spi.impl.sequence.CallIdSequenceWithBackpressure in project hazelcast by hazelcast.

the class InvocationRegistryTest method setup.

@Before
public void setup() {
    logger = Mockito.mock(ILogger.class);
    int capacity = 2;
    CallIdSequenceWithBackpressure callIdSequence = new CallIdSequenceWithBackpressure(capacity, 1000, ConcurrencyDetection.createDisabled());
    HazelcastProperties properties = new HazelcastProperties(new Properties());
    invocationRegistry = new InvocationRegistry(logger, callIdSequence, properties);
}
Also used : HazelcastProperties(com.hazelcast.spi.properties.HazelcastProperties) CallIdSequenceWithBackpressure(com.hazelcast.spi.impl.sequence.CallIdSequenceWithBackpressure) ILogger(com.hazelcast.logging.ILogger) Properties(java.util.Properties) HazelcastProperties(com.hazelcast.spi.properties.HazelcastProperties) Before(org.junit.Before)

Aggregations

ILogger (com.hazelcast.logging.ILogger)1 CallIdSequenceWithBackpressure (com.hazelcast.spi.impl.sequence.CallIdSequenceWithBackpressure)1 HazelcastProperties (com.hazelcast.spi.properties.HazelcastProperties)1 Properties (java.util.Properties)1 Before (org.junit.Before)1