パッケージ com.shimizukenta.secs
インタフェース SecsCommunicateStateDetectable
- 既知のサブインタフェースのリスト:
HsmsCommunicateStateDetectable
,HsmsSession
,HsmsSsCommunicator
,Secs1Communicator
,Secs1OnTcpIpCommunicator
,Secs1OnTcpIpReceiverCommunicator
,SecsCommunicator
public interface SecsCommunicateStateDetectable
SECS Communicate State Detectable.
-
メソッドの概要
修飾子とタイプ メソッド 説明 boolean
addSecsCommunicatableStateChangeBiListener(SecsCommunicatableStateChangeBiListener biListener)
Add Listener to get communicate-state-changed.boolean
addSecsCommunicatableStateChangeListener(SecsCommunicatableStateChangeListener listener)
Add Listener to get communicate-state-changed.boolean
isCommunicatable()
Returns true if communicatable.boolean
removeSecsCommunicatableStateChangeBiListener(SecsCommunicatableStateChangeBiListener biListener)
Remove Listener.boolean
removeSecsCommunicatableStateChangeListener(SecsCommunicatableStateChangeListener listener)
Remove Listener.void
waitUntilCommunicatable()
Wait until communicatable.void
waitUntilCommunicatable(long timeout, java.util.concurrent.TimeUnit unit)
Wait until communicatable.void
waitUntilNotCommunicatable()
Wait until NOT communicatable.void
waitUntilNotCommunicatable(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
- 戻り値:
true
if add success
-
removeSecsCommunicatableStateChangeListener
boolean removeSecsCommunicatableStateChangeListener(SecsCommunicatableStateChangeListener listener)Remove Listener.- パラメータ:
listener
- Not acceptnull
- 戻り値:
true
if remove success
-
addSecsCommunicatableStateChangeBiListener
boolean addSecsCommunicatableStateChangeBiListener(SecsCommunicatableStateChangeBiListener biListener)Add Listener to get communicate-state-changed.Blocking-Listener.
Pass through quickly.
- パラメータ:
biListener
- Not acceptnull
- 戻り値:
true
if add success
-
removeSecsCommunicatableStateChangeBiListener
boolean removeSecsCommunicatableStateChangeBiListener(SecsCommunicatableStateChangeBiListener biListener)Remove Listener.- パラメータ:
biListener
- Not acceptnull
- 戻り値:
true
if remove success
-