use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientListProxy method listIterator.
@Override
public ListIterator<E> listIterator(int index) {
ClientMessage request = ListListIteratorCodec.encodeRequest(name, index);
ClientMessage response = invokeOnPartition(request);
List<Data> resultCollection = ListListIteratorCodec.decodeResponse(response);
return (ListIterator<E>) new UnmodifiableLazyList(resultCollection, getSerializationService()).listIterator();
}
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);
return new UnmodifiableLazyList(ListGetAllCodec.decodeResponse(response), getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientSetProxy method getAll.
private Collection<E> getAll() {
ClientMessage request = SetGetAllCodec.encodeRequest(name);
ClientMessage response = invokeOnPartition(request);
return new UnmodifiableLazyList(SetGetAllCodec.decodeResponse(response), getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientMultiMapProxy method values.
@Nonnull
@Override
public Collection<V> values() {
ClientMessage request = MultiMapValuesCodec.encodeRequest(name);
ClientMessage response = invoke(request);
return new UnmodifiableLazyList(MultiMapValuesCodec.decodeResponse(response), getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientTxnMapProxy method values.
@Override
@SuppressWarnings("unchecked")
public Collection<V> values() {
ClientMessage request = TransactionalMapValuesCodec.encodeRequest(name, getTransactionId(), getThreadId());
ClientMessage response = invoke(request);
List dataValues = TransactionalMapValuesCodec.decodeResponse(response);
return new UnmodifiableLazyList(dataValues, getSerializationService());
}
Aggregations