use of com.hazelcast.client.impl.protocol.codec.AtomicRefContainsCodec in project hazelcast by hazelcast.
the class AtomicRefProxy method containsAsync.
@Override
public InternalCompletableFuture<Boolean> containsAsync(T expected) {
Data data = getContext().getSerializationService().toData(expected);
ClientMessage request = AtomicRefContainsCodec.encodeRequest(groupId, objectName, data);
ClientInvocationFuture future = new ClientInvocation(getClient(), request, name).invoke();
return new ClientDelegatingFuture<>(future, getSerializationService(), AtomicRefContainsCodec::decodeResponse);
}
Aggregations