Class ProxyLeaveClusterEvent
java.lang.Object
me.internalizable.numdrassl.api.event.cluster.ProxyLeaveClusterEvent
Event fired when a proxy instance leaves the cluster.
This event is fired when:
- A proxy gracefully shuts down (sends shutdown heartbeat)
- A proxy's heartbeat times out (assumed crashed)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumReasons a proxy might leave the cluster. -
Constructor Summary
ConstructorsConstructorDescriptionProxyLeaveClusterEvent(ProxyInfo proxyInfo, ProxyLeaveClusterEvent.LeaveReason reason) -
Method Summary
Modifier and TypeMethodDescriptionGet the ID of the proxy that left.Get information about the proxy that left.Get the reason the proxy left the cluster.
-
Constructor Details
-
ProxyLeaveClusterEvent
public ProxyLeaveClusterEvent(@Nonnull ProxyInfo proxyInfo, @Nonnull ProxyLeaveClusterEvent.LeaveReason reason)
-
-
Method Details
-
getProxyInfo
Get information about the proxy that left.- Returns:
- the departed proxy's last known info
-
getProxyId
-
getReason
Get the reason the proxy left the cluster.- Returns:
- the leave reason
-