use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientTxnMultiMapProxy method remove.
@Override
public Collection<V> remove(Object key) {
ClientMessage request = TransactionalMultiMapRemoveCodec.encodeRequest(name, getTransactionId(), getThreadId(), toData(key));
ClientMessage response = invoke(request);
List<Data> collection = TransactionalMultiMapRemoveCodec.decodeResponse(response).response;
return new UnmodifiableLazyList<V>(collection, getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientMultiMapProxy method remove.
@Override
public Collection<V> remove(Object key) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
Data keyData = toData(key);
ClientMessage request = MultiMapRemoveCodec.encodeRequest(name, keyData, ThreadUtil.getThreadId());
ClientMessage response = invoke(request, keyData);
MultiMapRemoveCodec.ResponseParameters resultParameters = MultiMapRemoveCodec.decodeResponse(response);
return new UnmodifiableLazyList<V>(resultParameters.response, getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientMapProxy method values.
@Override
public Collection<V> values() {
ClientMessage request = MapValuesCodec.encodeRequest(name);
ClientMessage response = invoke(request);
MapValuesCodec.ResponseParameters resultParameters = MapValuesCodec.decodeResponse(response);
return new UnmodifiableLazyList<V>(resultParameters.response, getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientMapProxy method values.
@Override
public Collection<V> values(Predicate predicate) {
checkNotNull(predicate, NULL_PREDICATE_IS_NOT_ALLOWED);
if (predicate instanceof PagingPredicate) {
return valuesForPagingPredicate((PagingPredicate) predicate);
}
ClientMessage request = MapValuesWithPredicateCodec.encodeRequest(name, toData(predicate));
ClientMessage response = invoke(request);
MapValuesWithPredicateCodec.ResponseParameters resultParameters = MapValuesWithPredicateCodec.decodeResponse(response);
return new UnmodifiableLazyList<V>(resultParameters.response, getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazyList in project hazelcast by hazelcast.
the class ClientMapProxy method project.
@Override
public <R> Collection<R> project(Projection<Entry<K, V>, R> projection) {
ClientMessage request = MapProjectCodec.encodeRequest(name, toData(projection));
ClientMessage response = invoke(request);
MapProjectCodec.ResponseParameters resultParameters = MapProjectCodec.decodeResponse(response);
return new UnmodifiableLazyList<R>(resultParameters.response, getSerializationService());
}
Aggregations