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) |
DistributedObject |
createDistributedObject(String proxyName)
Creates a distributed object.
|
protected RaftCountDownLatchRegistry |
createNewRegistry(CPGroupId groupId)
Creates a registry for the given Raft group.
|
void |
destroyDistributedObject(String objectName)
Destroys a distributed object.
|
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) |
addLiveOperation, destroyRaftObject, expireWaitKeys, getAttachedSessions, getLiveOperations, getOrInitRegistry, getRegistryOrNull, heartbeatSession, init, initImpl, notifyWaitKeys, onCPSubsystemRestart, onGroupDestroy, 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 DistributedObject createDistributedObject(String proxyName)
RemoteServiceproxyName - the name for the created distributed objectpublic void destroyDistributedObject(String objectName)
RemoteServiceobjectName - the name of the distributed object to destroyCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.