public class ReplicatedLockTokenRequest extends Object implements CoreReplicatedContent
| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID_LOCK_TOKEN_ID |
| Constructor and Description |
|---|
ReplicatedLockTokenRequest(MemberId owner,
int candidateId) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(CommandDispatcher commandDispatcher,
long commandIndex,
Consumer<Result> callback) |
boolean |
equals(Object o) |
int |
hashCode() |
int |
id()
The id of the lock token.
|
static int |
nextCandidateId(int currentId)
Convenience method for retrieving a valid candidate id for a
lock token request.
|
MemberId |
owner()
The owner of this lock token.
|
String |
toString() |
public static final int INVALID_LOCK_TOKEN_ID
public ReplicatedLockTokenRequest(MemberId owner, int candidateId)
public int id()
public MemberId owner()
public void dispatch(CommandDispatcher commandDispatcher, long commandIndex, Consumer<Result> callback)
dispatch in interface CoreReplicatedContentpublic static int nextCandidateId(int currentId)
currentId - Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.