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 XACollectTransactionsMessageTask method reduce.
@Override
protected Object reduce(Map<Member, Object> map) throws Throwable {
List<Data> list = new ArrayList<Data>();
for (Object o : map.values()) {
SerializableList xidSet = (SerializableList) o;
list.addAll(xidSet.getCollection());
}
return list;
}
use of com.hazelcast.spi.impl.SerializableList in project hazelcast by hazelcast.
the class QueueDrainMessageTask method encodeResponse.
@Override
protected ClientMessage encodeResponse(Object response) {
SerializableList serializableList = (SerializableList) response;
List<Data> coll = serializableList.getCollection();
return QueueDrainToCodec.encodeResponse(coll);
}
use of com.hazelcast.spi.impl.SerializableList 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.SerializableList in project hazelcast by hazelcast.
the class CollectionGetAllOperation method run.
@Override
public void run() throws Exception {
CollectionContainer collectionContainer = getOrCreateContainer();
List<Data> all = collectionContainer.getAll();
response = new SerializableList(all);
}
Aggregations