パッケージ com.shimizukenta.secs

インタフェース SecsCommunicateStateDetectable

既知のサブインタフェースのリスト:
HsmsCommunicateStateDetectable, HsmsSession, HsmsSsCommunicator, Secs1Communicator, Secs1OnTcpIpCommunicator, Secs1OnTcpIpReceiverCommunicator, SecsCommunicator

public interface SecsCommunicateStateDetectable
SECS Communicate State Detectable.
  • メソッドの詳細

    • isCommunicatable

      boolean isCommunicatable()
      Returns true if communicatable.

      Communicatable is send and receive message.

      戻り値:
      true if communicatable
    • waitUntilCommunicatable

      void waitUntilCommunicatable() throws java.lang.InterruptedException
      Wait until communicatable.

      Blocking-method.
      If Already communicatable, do nothing.

      例外:
      java.lang.InterruptedException - if interrupted
    • waitUntilCommunicatable

      void waitUntilCommunicatable​(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
      Wait until communicatable.

      Blocking-method.
      If Already communicatable, do nothing.

      パラメータ:
      timeout - the timeout value
      unit - the timeout unit
      例外:
      java.lang.InterruptedException - if interrupted
      java.util.concurrent.TimeoutException - if timeout
    • waitUntilNotCommunicatable

      void waitUntilNotCommunicatable() throws java.lang.InterruptedException
      Wait until NOT communicatable.

      Blocking-method.
      If Already not communicatable, do nothing.

      例外:
      java.lang.InterruptedException - if interrupted
    • waitUntilNotCommunicatable

      void waitUntilNotCommunicatable​(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
      Wait until NOT communicatable.

      Blocking-method.
      If Already not communicatable, do nothing.

      パラメータ:
      timeout - the timeout value
      unit - the timeout unit
      例外:
      java.lang.InterruptedException - if interrupted
      java.util.concurrent.TimeoutException - if timeout
    • addSecsCommunicatableStateChangeListener

      boolean addSecsCommunicatableStateChangeListener​(SecsCommunicatableStateChangeListener listener)
      Add Listener to get communicate-state-changed.

      Blocking-Listener.
      Pass through quickly.

      パラメータ:
      listener - Not accept null
      戻り値:
      true if add success
    • removeSecsCommunicatableStateChangeListener

      boolean removeSecsCommunicatableStateChangeListener​(SecsCommunicatableStateChangeListener listener)
      Remove Listener.
      パラメータ:
      listener - Not accept null
      戻り値:
      true if remove success
    • addSecsCommunicatableStateChangeBiListener

      boolean addSecsCommunicatableStateChangeBiListener​(SecsCommunicatableStateChangeBiListener biListener)
      Add Listener to get communicate-state-changed.

      Blocking-Listener.
      Pass through quickly.

      パラメータ:
      biListener - Not accept null
      戻り値:
      true if add success
    • removeSecsCommunicatableStateChangeBiListener

      boolean removeSecsCommunicatableStateChangeBiListener​(SecsCommunicatableStateChangeBiListener biListener)
      Remove Listener.
      パラメータ:
      biListener - Not accept null
      戻り値:
      true if remove success