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.
    • Method Detail

      • updateHeartBeat

        public void updateHeartBeat()
      • forceNewerGenerationUnsafe

        public void forceNewerGenerationUnsafe()
      • forceHighestPossibleVersionUnsafe

        public void forceHighestPossibleVersionUnsafe()
      • containsApplicationState

        public boolean containsApplicationState​(ApplicationState key)
      • getUpdateTimestamp

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

        public boolean isAlive()
      • 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)