use of com.hazelcast.spi.impl.UnmodifiableLazySet in project hazelcast by hazelcast.
the class ClientReplicatedMapProxy method keySet.
@Nonnull
@Override
@SuppressWarnings("unchecked")
public Set<K> keySet() {
ClientMessage request = ReplicatedMapKeySetCodec.encodeRequest(name);
ClientMessage response = invokeOnPartition(request, targetPartitionId);
return (Set<K>) new UnmodifiableLazySet(ReplicatedMapKeySetCodec.decodeResponse(response), getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazySet in project hazelcast by hazelcast.
the class ClientReplicatedMapProxy method entrySet.
@Nonnull
@Override
@SuppressWarnings("unchecked")
public Set<Entry<K, V>> entrySet() {
ClientMessage request = ReplicatedMapEntrySetCodec.encodeRequest(name);
ClientMessage response = invokeOnPartition(request, targetPartitionId);
return (Set) new UnmodifiableLazySet(ReplicatedMapEntrySetCodec.decodeResponse(response), getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazySet in project hazelcast by hazelcast.
the class ClientMapProxy method keySet.
@Nonnull
@Override
public Set<K> keySet() {
ClientMessage request = MapKeySetCodec.encodeRequest(name);
ClientMessage response = invoke(request);
return (Set<K>) new UnmodifiableLazySet(MapKeySetCodec.decodeResponse(response), getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazySet in project hazelcast by hazelcast.
the class ClientMultiMapProxy method keySet.
@Nonnull
@Override
public Set<K> keySet() {
ClientMessage request = MultiMapKeySetCodec.encodeRequest(name);
ClientMessage response = invoke(request);
return (Set<K>) new UnmodifiableLazySet(MultiMapKeySetCodec.decodeResponse(response), getSerializationService());
}
use of com.hazelcast.spi.impl.UnmodifiableLazySet in project hazelcast by hazelcast.
the class ClientMapProxy method keySet.
@SuppressWarnings("unchecked")
@Override
public Set<K> keySet(@Nonnull Predicate<K, V> predicate) {
checkNotNull(predicate, NULL_PREDICATE_IS_NOT_ALLOWED);
if (containsPagingPredicate(predicate)) {
return keySetWithPagingPredicate(predicate);
}
ClientMessage request = MapKeySetWithPredicateCodec.encodeRequest(name, toData(predicate));
ClientMessage response = invokeWithPredicate(request, predicate);
return (Set<K>) new UnmodifiableLazySet(MapKeySetWithPredicateCodec.decodeResponse(response), getSerializationService());
}
Aggregations