public interface PartitionService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PartitionEventListener listener)
Registers a event listener to be notified of partition events.
|
NodeId |
getLeader(Key intentKey)
Returns the leader for a particular key.
|
boolean |
isMine(Key intentKey)
Returns whether the given intent key is in a partition owned by this
instance or not.
|
void |
removeListener(PartitionEventListener listener)
Unregisters a event listener for partition events.
|
boolean isMine(Key intentKey)
intentKey - intent key to queryNodeId getLeader(Key intentKey)
intentKey - intent key to queryvoid addListener(PartitionEventListener listener)
listener - listener that will asynchronously notified of partition events.void removeListener(PartitionEventListener listener)
listener - listener to be removed.Copyright © 2015. All rights reserved.