use of com.hazelcast.spi.impl.SerializableList in project hazelcast by hazelcast.
the class QueueProxySupport method listInternal.
List<Data> listInternal() {
IteratorOperation operation = new IteratorOperation(name);
SerializableList collectionContainer = invokeAndGet(operation);
return (List<Data>) collectionContainer.getCollection();
}
use of com.hazelcast.spi.impl.SerializableList in project hazelcast by hazelcast.
the class DrainOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
dataMap = queueContainer.drain(maxSize);
response = new SerializableList(new ArrayList<Data>(dataMap.values()));
}
use of com.hazelcast.spi.impl.SerializableList in project hazelcast by hazelcast.
the class QueueDrainMaxSizeMessageTask method encodeResponse.
@Override
protected ClientMessage encodeResponse(Object response) {
SerializableList serializableList = (SerializableList) response;
List<Data> coll = serializableList.getCollection();
return QueueDrainToMaxSizeCodec.encodeResponse(coll);
}
use of com.hazelcast.spi.impl.SerializableList in project hazelcast by hazelcast.
the class QueueIteratorMessageTask method encodeResponse.
@Override
protected ClientMessage encodeResponse(Object response) {
SerializableList serializableList = (SerializableList) response;
List<Data> coll = serializableList.getCollection();
return QueueIteratorCodec.encodeResponse(coll);
}
use of com.hazelcast.spi.impl.SerializableList in project hazelcast by hazelcast.
the class AbstractCollectionProxyImpl method getAll.
private Collection<E> getAll() {
CollectionGetAllOperation operation = new CollectionGetAllOperation(name);
SerializableList result = invoke(operation);
List<Data> collection = result.getCollection();
SerializationService serializationService = getNodeEngine().getSerializationService();
return new UnmodifiableLazyList<E>(collection, serializationService);
}
Aggregations