public interface IEndpointStateChangeSubscriber
Modifier and Type | Method and Description |
---|---|
default void |
beforeChange(java.net.InetAddress endpoint,
EndpointState currentState,
ApplicationState newStateKey,
VersionedValue newValue) |
default void |
onAlive(java.net.InetAddress endpoint,
EndpointState state) |
default void |
onChange(java.net.InetAddress endpoint,
ApplicationState state,
VersionedValue value) |
default void |
onDead(java.net.InetAddress endpoint,
EndpointState state) |
default void |
onJoin(java.net.InetAddress endpoint,
EndpointState epState)
Use to inform interested parties about the change in the state
for specified endpoint
|
default void |
onRemove(java.net.InetAddress endpoint) |
default void |
onRestart(java.net.InetAddress endpoint,
EndpointState state)
Called whenever a node is restarted.
|
default void onJoin(java.net.InetAddress endpoint, EndpointState epState)
endpoint
- endpoint for which the state change occurred.epState
- state that actually changed for the above endpoint.default void beforeChange(java.net.InetAddress endpoint, EndpointState currentState, ApplicationState newStateKey, VersionedValue newValue)
default void onChange(java.net.InetAddress endpoint, ApplicationState state, VersionedValue value)
default void onAlive(java.net.InetAddress endpoint, EndpointState state)
default void onDead(java.net.InetAddress endpoint, EndpointState state)
default void onRemove(java.net.InetAddress endpoint)
default void onRestart(java.net.InetAddress endpoint, EndpointState state)
state.isAlive() == false
as state
is from before the restarted node is marked up.Copyright © 2009- The Apache Software Foundation