Search in sources :

Example 1 with ClientMapProxy

use of com.hazelcast.client.proxy.ClientMapProxy in project hazelcast by hazelcast.

the class ClientQueryCacheContextTest method setUp.

@Before
public void setUp() {
    factory = new TestHazelcastFactory();
    factory.newHazelcastInstance();
    HazelcastInstance hz = factory.newHazelcastClient();
    ClientMapProxy proxy = (ClientMapProxy) hz.getMap("test");
    context = proxy.getQueryContext();
}
Also used : ClientMapProxy(com.hazelcast.client.proxy.ClientMapProxy) HazelcastInstance(com.hazelcast.core.HazelcastInstance) TestHazelcastFactory(com.hazelcast.client.test.TestHazelcastFactory) Before(org.junit.Before)

Example 2 with ClientMapProxy

use of com.hazelcast.client.proxy.ClientMapProxy in project hazelcast by hazelcast.

the class ClientQueryCacheRecoveryUponEventLossTest method setTestSequencer.

private void setTestSequencer(IMap map, int eventCount) {
    ClientMapProxy proxy = (ClientMapProxy) map;
    QueryCacheContext queryCacheContext = proxy.getQueryContext();
    queryCacheContext.setSubscriberContext(new TestClientSubscriberContext(queryCacheContext, eventCount, true));
}
Also used : ClientMapProxy(com.hazelcast.client.proxy.ClientMapProxy) QueryCacheContext(com.hazelcast.map.impl.querycache.QueryCacheContext) TestClientSubscriberContext(com.hazelcast.client.map.querycache.subscriber.TestClientSubscriberContext)

Example 3 with ClientMapProxy

use of com.hazelcast.client.proxy.ClientMapProxy in project hazelcast by hazelcast.

the class ClientQueryCacheEventLostListenerTest method setTestSequencer.

private void setTestSequencer(IMap map, int eventCount) {
    ClientMapProxy proxy = (ClientMapProxy) map;
    QueryCacheContext queryCacheContext = proxy.getQueryContext();
    queryCacheContext.setSubscriberContext(new TestClientSubscriberContext(queryCacheContext, eventCount, true));
}
Also used : ClientMapProxy(com.hazelcast.client.proxy.ClientMapProxy) QueryCacheContext(com.hazelcast.map.impl.querycache.QueryCacheContext) TestClientSubscriberContext(com.hazelcast.client.map.querycache.subscriber.TestClientSubscriberContext)

Aggregations

ClientMapProxy (com.hazelcast.client.proxy.ClientMapProxy)3 TestClientSubscriberContext (com.hazelcast.client.map.querycache.subscriber.TestClientSubscriberContext)2 QueryCacheContext (com.hazelcast.map.impl.querycache.QueryCacheContext)2 TestHazelcastFactory (com.hazelcast.client.test.TestHazelcastFactory)1 HazelcastInstance (com.hazelcast.core.HazelcastInstance)1 Before (org.junit.Before)1