public class RaftFencedLockProxy extends AbstractRaftFencedLockProxy
FencedLock
APIobjectName, proxyName
groupId
INVALID_FENCE
Constructor and Description |
---|
RaftFencedLockProxy(NodeEngine nodeEngine,
RaftGroupId groupId,
String proxyName,
String objectName) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this object cluster-wide.
|
protected InternalCompletableFuture<RaftLockOwnershipState> |
doGetLockOwnershipState() |
protected InternalCompletableFuture<Long> |
doLock(long sessionId,
long threadId,
UUID invocationUid) |
protected InternalCompletableFuture<Long> |
doTryLock(long sessionId,
long threadId,
UUID invocationUid,
long timeoutMillis) |
protected InternalCompletableFuture<Boolean> |
doUnlock(long sessionId,
long threadId,
UUID invocationUid) |
getFence, getLockCount, getLockedSessionId, getName, getObjectName, getPartitionKey, getServiceName, isLocked, isLockedByCurrentThread, lock, lockAndGetFence, lockInterruptibly, newCondition, tryLock, tryLock, tryLockAndGetFence, tryLockAndGetFence, unlock
acquireSession, acquireSession, getGroupId, getOrCreateUniqueThreadId, getSession, invalidateSession, releaseSession, releaseSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGroupId
public RaftFencedLockProxy(NodeEngine nodeEngine, RaftGroupId groupId, String proxyName, String objectName)
protected final InternalCompletableFuture<Long> doLock(long sessionId, long threadId, UUID invocationUid)
doLock
in class AbstractRaftFencedLockProxy
protected final InternalCompletableFuture<Long> doTryLock(long sessionId, long threadId, UUID invocationUid, long timeoutMillis)
doTryLock
in class AbstractRaftFencedLockProxy
protected final InternalCompletableFuture<Boolean> doUnlock(long sessionId, long threadId, UUID invocationUid)
doUnlock
in class AbstractRaftFencedLockProxy
protected final InternalCompletableFuture<RaftLockOwnershipState> doGetLockOwnershipState()
doGetLockOwnershipState
in class AbstractRaftFencedLockProxy
public void destroy()
DistributedObject
destroy
in interface DistributedObject
destroy
in class AbstractRaftFencedLockProxy
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.