Search in sources :

Example 1 with CacheKeysWithCursor

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());
}
Also used : CacheKeysWithCursor(com.hazelcast.cache.impl.CacheKeysWithCursor) IterationPointer(com.hazelcast.internal.iteration.IterationPointer)

Aggregations

CacheKeysWithCursor (com.hazelcast.cache.impl.CacheKeysWithCursor)1 IterationPointer (com.hazelcast.internal.iteration.IterationPointer)1