Package io.hekate.coordinate
Interface CoordinationRequestCallback
-
public interface CoordinationRequestCallback
Callback for coordination requests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
onCancel()
Gets called if coordination process wascancelled
before the response could be received.void
onResponse(Object response, CoordinationMember from)
Gets called when aresponse
is received.
-
-
-
Method Detail
-
onResponse
void onResponse(Object response, CoordinationMember from)
Gets called when aresponse
is received.- Parameters:
response
- Response.from
- Member who sent the response.
-
onCancel
default void onCancel()
Gets called if coordination process wascancelled
before the response could be received.
-
-