Class State

    • Field Detail

      • log

        protected final org.slf4j.Logger log
      • checkTimeoutExecs

        protected java.util.concurrent.ScheduledExecutorService checkTimeoutExecs
      • logPrefix

        protected java.lang.String logPrefix
      • receivedMsg

        protected byte[] receivedMsg
    • Method Detail

      • init

        public abstract void init()
      • sendMsg

        public void sendMsg​(byte[] msg)
      • processMsg

        public abstract void processMsg​(byte[] msg)
      • next

        public void next()
      • deactivateAllTimers

        protected abstract void deactivateAllTimers()
      • nextState

        protected abstract void nextState()
      • shutDownExecutors

        public void shutDownExecutors()
      • getSubState

        public abstract SubState getSubState()
      • setSubState

        public abstract void setSubState​(SubState subState)
      • checkTimeout

        protected void checkTimeout​(TimeoutTimer t)
      • timedOut

        protected abstract void timedOut​(TimeoutTimer timeoutTimer)
        what should happen if a timer times out
      • getLogPrefix

        public java.lang.String getLogPrefix()
      • pollReceivedMsg

        public byte[] pollReceivedMsg()
        returns and removes the last received message
        the last received message
      • peekReceivedMsg

        public byte[] peekReceivedMsg()
        returns the last received message without removing it
        the last received message
      • receivedMsg

        public boolean receivedMsg()
      • setReceivedMsg

        public void setReceivedMsg​(byte[] receivedMsg)
      • setStateTransCBList

        public void setStateTransCBList​(java.util.List<StateTransitionCallBack> stateTransCBList)