Class StatusChangeEvent

  • All Implemented Interfaces:
    EurekaEvent

    public class StatusChangeEvent
    extends DiscoveryEvent
    Event containing the latest instance status information. This event is sent to the EventBus by {@link EurekaClient) whenever a status change is identified from the remote Eureka server response.
    • Method Detail

      • isUp

        public boolean isUp()
        Return the up current when the event was generated.
        Returns:
        true if current is up or false for ALL other current values
      • getPreviousStatus

        public InstanceInfo.InstanceStatus getPreviousStatus()
        Returns:
        Return the client status immediately before the change
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object