public interface ISynchronizator
Modifier and Type | Method and Description |
---|---|
void |
invokeLater(java.lang.Runnable action)
Add an action from external thread.
|
void |
invokeSynchronized(java.lang.Runnable code)
Invoke some code synchronized with other behavior.
|
boolean |
isExternalThread()
Check if the external thread is accessing.
|
void invokeSynchronized(java.lang.Runnable code)
code
- The code to execute.
The method will block the externally calling thread until the
action has been executed.
If the synchronizator does not accept external actions (because of termination)
the method will directly fail with a runtime exception.void invokeLater(java.lang.Runnable action)
action
- The action.boolean isExternalThread()