Class EndpointState


  • public class EndpointState
    extends java.lang.Object
    This abstraction represents both the HeartBeatState and the ApplicationState in an EndpointState instance. Any state for a given endpoint can be retrieved from this instance.
    • Constructor Detail

      • EndpointState

        public EndpointState​(HeartBeatState initialHbState)
    • Method Detail

      • containsApplicationState

        public boolean containsApplicationState​(ApplicationState key)
      • getUpdateTimestamp

        public long getUpdateTimestamp()
        Returns:
        System.nanoTime() when state was updated last time.
      • unsafeSetUpdateTimestamp

        public void unsafeSetUpdateTimestamp​(long value)
      • isAlive

        public boolean isAlive()
      • markAlive

        public void markAlive()
      • markDead

        public void markDead()
      • isStateEmpty

        public boolean isStateEmpty()
      • isEmptyWithoutStatus

        public boolean isEmptyWithoutStatus()
        Returns:
        true if HeartBeatState.isEmpty() is true and no STATUS application state exists
      • isRpcReady

        public boolean isRpcReady()
      • isNormalState

        public boolean isNormalState()
      • getStatus

        public java.lang.String getStatus()
      • getSchemaVersion

        @Nullable
        public java.util.UUID getSchemaVersion()
      • toString

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

        public boolean isSupersededBy​(EndpointState that)