use of com.hazelcast.client.impl.protocol.codec.CacheEventJournalSubscribeCodec.ResponseParameters in project hazelcast by hazelcast.
the class ClientCacheProxy method onInitialize.
@Override
protected void onInitialize() {
super.onInitialize();
eventJournalReadResponseDecoder = message -> {
final CacheEventJournalReadCodec.ResponseParameters params = CacheEventJournalReadCodec.decodeResponse(message);
final ReadResultSetImpl resultSet = new ReadResultSetImpl<>(params.readCount, params.items, params.itemSeqs, params.nextSeq);
resultSet.setSerializationService(getSerializationService());
return resultSet;
};
eventJournalSubscribeResponseDecoder = message -> {
final ResponseParameters resp = CacheEventJournalSubscribeCodec.decodeResponse(message);
return new EventJournalInitialSubscriberState(resp.oldestSequence, resp.newestSequence);
};
}
Aggregations