public class RaftFencedLockProxy extends ClientProxy implements FencedLock
FencedLock APInameINVALID_FENCE| Constructor and Description |
|---|
RaftFencedLockProxy(ClientContext context,
RaftGroupId groupId,
String proxyName,
String objectName) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFence() |
CPGroupId |
getGroupId() |
int |
getLockCount() |
boolean |
isLocked() |
boolean |
isLockedByCurrentThread() |
void |
lock() |
long |
lockAndGetFence() |
void |
lockInterruptibly() |
Condition |
newCondition() |
void |
onDestroy()
Called before proxy is destroyed.
|
protected void |
postDestroy()
Called after proxy is destroyed.
|
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
long |
tryLockAndGetFence() |
long |
tryLockAndGetFence(long time,
TimeUnit unit) |
void |
unlock() |
deregisterListener, destroy, destroyLocally, destroyRemotely, equals, getClient, getConnectedServerVersion, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnAddress, invokeOnPartition, invokeOnPartitionInterruptibly, onInitialize, onShutdown, preDestroy, registerListener, setContext, toData, toObjectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdestroy, getName, getPartitionKey, getServiceNamepublic RaftFencedLockProxy(ClientContext context, RaftGroupId groupId, String proxyName, String objectName)
public void lock()
lock in interface FencedLocklock in interface Lockpublic void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface FencedLocklockInterruptibly in interface LockInterruptedExceptionpublic long lockAndGetFence()
lockAndGetFence in interface FencedLockpublic boolean tryLock()
tryLock in interface FencedLocktryLock in interface Lockpublic long tryLockAndGetFence()
tryLockAndGetFence in interface FencedLockpublic boolean tryLock(long time,
TimeUnit unit)
tryLock in interface FencedLocktryLock in interface Lockpublic long tryLockAndGetFence(long time,
TimeUnit unit)
tryLockAndGetFence in interface FencedLockpublic void unlock()
unlock in interface FencedLockunlock in interface Lockpublic long getFence()
getFence in interface FencedLockpublic boolean isLocked()
isLocked in interface FencedLockpublic boolean isLockedByCurrentThread()
isLockedByCurrentThread in interface FencedLockpublic int getLockCount()
getLockCount in interface FencedLockpublic CPGroupId getGroupId()
getGroupId in interface FencedLockpublic Condition newCondition()
newCondition in interface FencedLocknewCondition in interface Lockpublic void onDestroy()
ClientProxyonDestroy in class ClientProxyprotected void postDestroy()
ClientProxypostDestroy in class ClientProxyCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.