public class RaftSessionlessSemaphoreProxy extends ClientProxy implements ISemaphore
ISemaphorename| Constructor and Description |
|---|
RaftSessionlessSemaphoreProxy(ClientContext context,
RaftGroupId groupId,
String proxyName,
String objectName) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire() |
void |
acquire(int permits) |
int |
availablePermits() |
int |
drainPermits() |
CPGroupId |
getGroupId() |
String |
getPartitionKey() |
void |
increasePermits(int increase) |
boolean |
init(int permits) |
void |
onDestroy()
Called before proxy is destroyed.
|
void |
reducePermits(int reduction) |
void |
release() |
void |
release(int permits) |
boolean |
tryAcquire() |
boolean |
tryAcquire(int permits) |
boolean |
tryAcquire(int permits,
long timeout,
TimeUnit unit) |
boolean |
tryAcquire(long timeout,
TimeUnit unit) |
deregisterListener, destroy, destroyLocally, destroyRemotely, equals, getClient, getConnectedServerVersion, getContext, getDistributedObjectName, getId, getName, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnAddress, invokeOnPartition, invokeOnPartitionInterruptibly, onInitialize, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObjectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetNamedestroy, getServiceNamepublic RaftSessionlessSemaphoreProxy(ClientContext context, RaftGroupId groupId, String proxyName, String objectName)
public boolean init(int permits)
init in interface ISemaphorepublic void acquire()
acquire in interface ISemaphorepublic void acquire(int permits)
acquire in interface ISemaphorepublic boolean tryAcquire()
tryAcquire in interface ISemaphorepublic boolean tryAcquire(int permits)
tryAcquire in interface ISemaphorepublic boolean tryAcquire(long timeout,
TimeUnit unit)
tryAcquire in interface ISemaphorepublic boolean tryAcquire(int permits,
long timeout,
TimeUnit unit)
tryAcquire in interface ISemaphorepublic void release()
release in interface ISemaphorepublic void release(int permits)
release in interface ISemaphorepublic int availablePermits()
availablePermits in interface ISemaphorepublic int drainPermits()
drainPermits in interface ISemaphorepublic void reducePermits(int reduction)
reducePermits in interface ISemaphorepublic void increasePermits(int increase)
increasePermits in interface ISemaphorepublic String getPartitionKey()
getPartitionKey in interface DistributedObjectgetPartitionKey in class ClientProxypublic void onDestroy()
ClientProxyonDestroy in class ClientProxypublic CPGroupId getGroupId()
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.