use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientReplicatedMapProxy method values.
@Override
public Collection<V> values() {
ClientMessage request = ReplicatedMapValuesCodec.encodeRequest(name);
ClientMessage response = invokeOnPartition(request, targetPartitionId);
ReplicatedMapValuesCodec.ResponseParameters result = ReplicatedMapValuesCodec.decodeResponse(response);
return new UnmodifiableLazyList<V>(result.response, getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientTxnMultiMapProxy method get.
@Override
public Collection<V> get(K key) {
ClientMessage request = TransactionalMultiMapGetCodec.encodeRequest(name, getTransactionId(), getThreadId(), toData(key));
ClientMessage response = invoke(request);
List<Data> collection = TransactionalMultiMapGetCodec.decodeResponse(response).response;
return new UnmodifiableLazyList<V>(collection, getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ListProxyImpl method subList.
@Override
public List<E> subList(int fromIndex, int toIndex) {
ListSubOperation operation = new ListSubOperation(name, fromIndex, toIndex);
SerializableList result = invoke(operation);
List<Data> collection = result.getCollection();
SerializationService serializationService = getNodeEngine().getSerializationService();
return new UnmodifiableLazyList<E>(collection, serializationService);
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientListProxy method getAll.
private Collection<E> getAll() {
ClientMessage request = ListGetAllCodec.encodeRequest(name);
ClientMessage response = invokeOnPartition(request);
ListGetAllCodec.ResponseParameters resultParameters = ListGetAllCodec.decodeResponse(response);
return new UnmodifiableLazyList<E>(resultParameters.response, getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientListProxy method subList.
@Override
public List<E> subList(int fromIndex, int toIndex) {
ClientMessage request = ListSubCodec.encodeRequest(name, fromIndex, toIndex);
ClientMessage response = invokeOnPartition(request);
ListSubCodec.ResponseParameters resultParameters = ListSubCodec.decodeResponse(response);
List<Data> resultCollection = resultParameters.response;
SerializationService serializationService = getContext().getSerializationService();
return new UnmodifiableLazyList<E>(resultCollection, serializationService);
}
Aggregations