use of com.hazelcast.cache.impl.CacheKeysWithCursor in project hazelcast by hazelcast.
the class CacheIterateMessageTask method encodeResponse.
@Override
protected ClientMessage encodeResponse(Object response) {
if (response == null) {
return CacheIterateCodec.encodeResponse(Collections.emptyList(), Collections.emptyList());
}
CacheKeysWithCursor keyIteratorResult = (CacheKeysWithCursor) response;
IterationPointer[] pointers = keyIteratorResult.getPointers();
return CacheIterateCodec.encodeResponse(encodePointers(pointers), keyIteratorResult.getKeys());
}
Aggregations