Search in sources :

Example 6 with InvokerWrapper

use of com.hazelcast.map.impl.querycache.InvokerWrapper in project hazelcast by hazelcast.

the class ClientQueryCacheEndToEndConstructor method createPublishAccumulatorWithoutIncludeValue.

private void createPublishAccumulatorWithoutIncludeValue(AccumulatorInfo info) {
    Data data = context.getSerializationService().toData(info.getPredicate());
    ClientMessage request = ContinuousQueryPublisherCreateCodec.encodeRequest(info.getMapName(), info.getCacheName(), data, info.getBatchSize(), info.getBufferSize(), info.getDelaySeconds(), info.isPopulate(), info.isCoalesce());
    InvokerWrapper invokerWrapper = context.getInvokerWrapper();
    ClientMessage response = (ClientMessage) invokerWrapper.invoke(request);
    Collection<Data> result = ContinuousQueryPublisherCreateCodec.decodeResponse(response).response;
    populateWithoutValues(queryCache, result);
}
Also used : InvokerWrapper(com.hazelcast.map.impl.querycache.InvokerWrapper) Data(com.hazelcast.nio.serialization.Data) ClientMessage(com.hazelcast.client.impl.protocol.ClientMessage)

Aggregations

InvokerWrapper (com.hazelcast.map.impl.querycache.InvokerWrapper)6 Member (com.hazelcast.core.Member)3 ArrayList (java.util.ArrayList)3 Future (java.util.concurrent.Future)3 ClientMessage (com.hazelcast.client.impl.protocol.ClientMessage)2 NodeInvokerWrapper (com.hazelcast.map.impl.querycache.NodeInvokerWrapper)2 PublisherCreateOperation (com.hazelcast.map.impl.querycache.subscriber.operation.PublisherCreateOperation)2 Address (com.hazelcast.nio.Address)2 Data (com.hazelcast.nio.serialization.Data)2 IMap (com.hazelcast.core.IMap)1 QueryResult (com.hazelcast.map.impl.query.QueryResult)1 MadePublishableOperation (com.hazelcast.map.impl.querycache.subscriber.operation.MadePublishableOperation)1 Operation (com.hazelcast.spi.Operation)1 Map (java.util.Map)1 ConcurrentMap (java.util.concurrent.ConcurrentMap)1