Package io.hekate.coordinate
Interface CoordinationMember
-
public interface CoordinationMember
Member of a coordination process.- See Also:
CoordinationContext.members()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isCoordinator()
Returnstrue
if this member was selected to be the coordinator.ClusterNode
node()
Returns the cluster node of this member.void
request(Object request, CoordinationRequestCallback callback)
Asynchronously send the specified request to this member.
-
-
-
Method Detail
-
isCoordinator
boolean isCoordinator()
Returnstrue
if this member was selected to be the coordinator.- Returns:
true
if this member was selected to be the coordinator.
-
node
ClusterNode node()
Returns the cluster node of this member.- Returns:
- Cluster node.
-
request
void request(Object request, CoordinationRequestCallback callback)
Asynchronously send the specified request to this member.- Parameters:
request
- Request.callback
- Callback to be notified upon member response.- See Also:
CoordinationHandler.process(CoordinationRequest, CoordinationContext)
-
-