public class RaftCountDownLatchService extends AbstractBlockingService<AwaitInvocationKey,RaftCountDownLatch,RaftCountDownLatchRegistry>
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME
Name of the service
|
logger, nodeEngine, raftService, WAIT_TIMEOUT_TASK_UPPER_BOUND_MILLIS| Constructor and Description |
|---|
RaftCountDownLatchService(NodeEngine nodeEngine) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(CPGroupId groupId,
String name,
AwaitInvocationKey key,
long timeoutMillis) |
int |
countDown(CPGroupId groupId,
String name,
UUID invocationUuid,
int expectedRound) |
protected RaftCountDownLatchRegistry |
createNewRegistry(CPGroupId groupId)
Creates a registry for the given Raft group.
|
ICountDownLatch |
createProxy(String proxyName)
Creates a proxy for a CP data structure.
|
protected Object |
expiredWaitKeyResponse()
Creates the response object that will be sent for a expired wait key.
|
int |
getRemainingCount(CPGroupId groupId,
String name) |
int |
getRound(CPGroupId groupId,
String name) |
protected String |
serviceName()
Returns name of the service.
|
boolean |
trySetCount(CPGroupId groupId,
String name,
int count) |
destroyRaftObject, expireWaitKeys, getAttachedSessions, getLiveOperations, getOrInitRegistry, getRegistryOrNull, heartbeatSession, init, initImpl, notifyWaitKeys, onCPSubsystemRestart, onRaftGroupDestroyed, onRaftNodeSteppedDown, onRegistryRestored, onSessionClose, populate, reset, restoreSnapshot, scheduleTimeout, setSessionAccessor, shutdown, shutdownImpl, takeSnapshotpublic static final String SERVICE_NAME
public RaftCountDownLatchService(NodeEngine nodeEngine)
public int countDown(CPGroupId groupId, String name, UUID invocationUuid, int expectedRound)
public boolean await(CPGroupId groupId, String name, AwaitInvocationKey key, long timeoutMillis)
protected RaftCountDownLatchRegistry createNewRegistry(CPGroupId groupId)
AbstractBlockingServicecreateNewRegistry in class AbstractBlockingService<AwaitInvocationKey,RaftCountDownLatch,RaftCountDownLatchRegistry>protected Object expiredWaitKeyResponse()
AbstractBlockingServiceexpiredWaitKeyResponse in class AbstractBlockingService<AwaitInvocationKey,RaftCountDownLatch,RaftCountDownLatchRegistry>protected String serviceName()
AbstractBlockingServiceserviceName in class AbstractBlockingService<AwaitInvocationKey,RaftCountDownLatch,RaftCountDownLatchRegistry>public ICountDownLatch createProxy(String proxyName)
RaftRemoteServiceproxyName - the name of the CP data structureCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.