public class SwingSynchronizator
extends java.lang.Object
implements jadex.commons.concurrent.ISynchronizator
| Constructor and Description |
|---|
SwingSynchronizator() |
| 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.
|
public void invokeSynchronized(java.lang.Runnable code)
invokeSynchronized in interface jadex.commons.concurrent.ISynchronizatorcode - 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.public void invokeLater(java.lang.Runnable action)
invokeLater in interface jadex.commons.concurrent.ISynchronizatoraction - The action.public boolean isExternalThread()
isExternalThread in interface jadex.commons.concurrent.ISynchronizator