Class ProxyLeaveClusterEvent

java.lang.Object
me.internalizable.numdrassl.api.event.cluster.ProxyLeaveClusterEvent

public final class ProxyLeaveClusterEvent extends Object
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)
  • Constructor Details

  • Method Details

    • getProxyInfo

      @Nonnull public ProxyInfo getProxyInfo()
      Get information about the proxy that left.
      Returns:
      the departed proxy's last known info
    • getProxyId

      @Nonnull public String getProxyId()
      Get the ID of the proxy that left.
      Returns:
      the proxy ID
    • getReason

      @Nonnull public ProxyLeaveClusterEvent.LeaveReason getReason()
      Get the reason the proxy left the cluster.
      Returns:
      the leave reason