パッケージ com.shimizukenta.secs
インタフェース SecsCommunicateStateDetectable
- 既知のサブインタフェースのリスト:
HsmsCommunicateStateDetectable,HsmsSession,HsmsSsCommunicator,Secs1Communicator,Secs1OnTcpIpCommunicator,Secs1OnTcpIpReceiverCommunicator,SecsCommunicator
public interface SecsCommunicateStateDetectable
SECS Communicate State Detectable.
-
メソッドの概要
修飾子とタイプ メソッド 説明 booleanaddSecsCommunicatableStateChangeBiListener(SecsCommunicatableStateChangeBiListener biListener)Add Listener to get communicate-state-changed.booleanaddSecsCommunicatableStateChangeListener(SecsCommunicatableStateChangeListener listener)Add Listener to get communicate-state-changed.booleanisCommunicatable()Returns true if communicatable.booleanremoveSecsCommunicatableStateChangeBiListener(SecsCommunicatableStateChangeBiListener biListener)Remove Listener.booleanremoveSecsCommunicatableStateChangeListener(SecsCommunicatableStateChangeListener listener)Remove Listener.voidwaitUntilCommunicatable()Wait until communicatable.voidwaitUntilCommunicatable(long timeout, java.util.concurrent.TimeUnit unit)Wait until communicatable.voidwaitUntilNotCommunicatable()Wait until NOT communicatable.voidwaitUntilNotCommunicatable(long timeout, java.util.concurrent.TimeUnit unit)Wait until NOT communicatable.
-
メソッドの詳細
-
isCommunicatable
boolean isCommunicatable()Returns true if communicatable.Communicatable is send and receive message.
- 戻り値:
- true if communicatable
-
waitUntilCommunicatable
void waitUntilCommunicatable() throws java.lang.InterruptedExceptionWait 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.TimeoutExceptionWait until communicatable.Blocking-method.
If Already communicatable, do nothing.
- パラメータ:
timeout- the timeout valueunit- the timeout unit- 例外:
java.lang.InterruptedException- if interruptedjava.util.concurrent.TimeoutException- if timeout
-
waitUntilNotCommunicatable
void waitUntilNotCommunicatable() throws java.lang.InterruptedExceptionWait 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.TimeoutExceptionWait until NOT communicatable.Blocking-method.
If Already not communicatable, do nothing.
- パラメータ:
timeout- the timeout valueunit- the timeout unit- 例外:
java.lang.InterruptedException- if interruptedjava.util.concurrent.TimeoutException- if timeout
-
addSecsCommunicatableStateChangeListener
Add Listener to get communicate-state-changed.Blocking-Listener.
Pass through quickly.
- パラメータ:
listener- Not acceptnull- 戻り値:
trueif add success
-
removeSecsCommunicatableStateChangeListener
boolean removeSecsCommunicatableStateChangeListener(SecsCommunicatableStateChangeListener listener)Remove Listener.- パラメータ:
listener- Not acceptnull- 戻り値:
trueif remove success
-
addSecsCommunicatableStateChangeBiListener
boolean addSecsCommunicatableStateChangeBiListener(SecsCommunicatableStateChangeBiListener biListener)Add Listener to get communicate-state-changed.Blocking-Listener.
Pass through quickly.
- パラメータ:
biListener- Not acceptnull- 戻り値:
trueif add success
-
removeSecsCommunicatableStateChangeBiListener
boolean removeSecsCommunicatableStateChangeBiListener(SecsCommunicatableStateChangeBiListener biListener)Remove Listener.- パラメータ:
biListener- Not acceptnull- 戻り値:
trueif remove success
-