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);
}
Aggregations