public class ClientPNCounterProxy extends ClientProxy implements PNCounter
PNCounter
.name
Constructor and Description |
---|
ClientPNCounterProxy(String serviceName,
String objectName,
ClientContext context)
Creates a client
PNCounter proxy |
Modifier and Type | Method and Description |
---|---|
long |
addAndGet(long delta) |
long |
decrementAndGet() |
long |
get() |
long |
getAndAdd(long delta) |
long |
getAndDecrement() |
long |
getAndIncrement() |
long |
getAndSubtract(long delta) |
Address |
getCurrentTargetReplicaAddress()
Returns the current target replica address to which this proxy is
sending invocations.
|
long |
incrementAndGet() |
void |
reset() |
long |
subtractAndGet(long delta) |
String |
toString() |
deregisterListener, destroy, destroyLocally, destroyRemotely, equals, getClient, getConnectedServerVersion, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnAddress, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onInitialize, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, getName, getPartitionKey, getServiceName
public ClientPNCounterProxy(String serviceName, String objectName, ClientContext context)
PNCounter
proxyserviceName
- the service nameobjectName
- the PNCounter namecontext
- the client context containing references to services
and configurationpublic long getAndSubtract(long delta)
getAndSubtract
in interface PNCounter
public long subtractAndGet(long delta)
subtractAndGet
in interface PNCounter
public long decrementAndGet()
decrementAndGet
in interface PNCounter
public long incrementAndGet()
incrementAndGet
in interface PNCounter
public long getAndDecrement()
getAndDecrement
in interface PNCounter
public long getAndIncrement()
getAndIncrement
in interface PNCounter
public Address getCurrentTargetReplicaAddress()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.