@Beta public interface WorkPartitionService extends ListenerService<WorkPartitionEvent,WorkPartitionEventListener>
| Modifier and Type | Method and Description |
|---|---|
<K> NodeId |
getLeader(K id,
Function<K,Long> hasher)
Returns the owner for a given id.
|
<K> boolean |
isMine(K id,
Function<K,Long> hasher)
Returns whether a given id maps to a partition owned by this
instance.
|
addListener, removeListener