public class ClientCardinalityEstimatorProxy extends ClientProxy implements CardinalityEstimator
CardinalityEstimator.name| Constructor and Description |
|---|
ClientCardinalityEstimatorProxy(String serviceName,
String objectId,
ClientContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object obj) |
InternalCompletableFuture<Void> |
addAsync(Object obj) |
long |
estimate() |
InternalCompletableFuture<Long> |
estimateAsync() |
protected ClientMessage |
invokeOnPartition(ClientMessage req) |
protected <T> ClientDelegatingFuture<T> |
invokeOnPartitionAsync(ClientMessage clientMessage,
ClientMessageDecoder clientMessageDecoder) |
protected <T> T |
invokeOnPartitionInterruptibly(ClientMessage clientMessage) |
protected void |
onInitialize()
Called when proxy is created.
|
String |
toString() |
deregisterListener, destroy, destroyLocally, destroyRemotely, equals, getClient, getConnectedServerVersion, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnAddress, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, getName, getPartitionKey, getServiceNamepublic ClientCardinalityEstimatorProxy(String serviceName, String objectId, ClientContext context)
public void add(Object obj)
add in interface CardinalityEstimatorpublic long estimate()
estimate in interface CardinalityEstimatorpublic InternalCompletableFuture<Void> addAsync(Object obj)
addAsync in interface CardinalityEstimatorpublic InternalCompletableFuture<Long> estimateAsync()
estimateAsync in interface CardinalityEstimatorprotected void onInitialize()
ClientProxyonInitialize in class ClientProxyprotected ClientMessage invokeOnPartition(ClientMessage req)
protected <T> T invokeOnPartitionInterruptibly(ClientMessage clientMessage) throws InterruptedException
InterruptedExceptionprotected <T> ClientDelegatingFuture<T> invokeOnPartitionAsync(ClientMessage clientMessage, ClientMessageDecoder clientMessageDecoder)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.