Generic job spooler implementation in a dedicated thread. This class is for internal usage. More...
Public Member Functions | |
| Spooler () | |
| Spooler (Listener l) | |
| boolean | isStarted () | 
| boolean | isStopped () | 
| boolean | isQuitting () | 
| synchronized boolean | isAlive () | 
| boolean | isPaused () | 
| boolean | isEmpty () | 
| int | size () | 
| boolean | getClearOnStop () | 
| void | setClearOnStop (boolean clearOnStop) | 
| long | idThread () | 
| boolean | isThisThread () | 
| synchronized boolean | start () | 
| synchronized boolean | stop () | 
| boolean | pause () | 
| boolean | resume () | 
| void | clear () | 
| int | exec (Runnable job) | 
| boolean | cancel (int id) | 
| Runnable | getJobOf (int id) | 
| boolean | waitFor (int id) | 
| boolean | waitFor (int id, long timeout) | 
| boolean | waitForIdle () | 
| boolean | waitForIdle (long timeout) | 
| boolean | waitForStop () | 
| boolean | waitForStop (long timeout) | 
| void | onIdle () | 
| void | run () | 
  Public Member Functions inherited from MetaListener | |
| MetaListener () | |
| MetaListener (Listener l) | |
| Listener | getListener () | 
| void | setListener (Listener l) | 
| void | onStart () | 
| void | onStop () | 
| void | onPause () | 
| void | onResume () | 
| void | onReady () | 
| void | onIdle () | 
| void | onEvt (Object evt, Object value) | 
| void | onErr (Throwable t) | 
Static Public Attributes | |
| static final long | THREAD_NULL = 0 | 
| static final int | ID_NULL = 0 | 
Additional Inherited Members | |
  Protected Attributes inherited from MetaListener | |
| Listener | listener | 
Generic job spooler implementation in a dedicated thread. This class is for internal usage.
| Spooler | ( | ) | 
| boolean cancel | ( | int | id | ) | 
| void clear | ( | ) | 
| int exec | ( | Runnable | job | ) | 
| boolean getClearOnStop | ( | ) | 
| Runnable getJobOf | ( | int | id | ) | 
| long idThread | ( | ) | 
| synchronized boolean isAlive | ( | ) | 
| boolean isEmpty | ( | ) | 
| boolean isPaused | ( | ) | 
| boolean isQuitting | ( | ) | 
| boolean isStarted | ( | ) | 
| boolean isStopped | ( | ) | 
| boolean isThisThread | ( | ) | 
| void onIdle | ( | ) | 
Invoked when a mechanism become idle (usually a spooler).
Implements Listener.
| boolean pause | ( | ) | 
| boolean resume | ( | ) | 
| void run | ( | ) | 
| void setClearOnStop | ( | boolean | clearOnStop | ) | 
| int size | ( | ) | 
| synchronized boolean start | ( | ) | 
| synchronized boolean stop | ( | ) | 
| boolean waitFor | ( | int | id | ) | 
| boolean waitFor | ( | int | id, | 
| long | timeout | ||
| ) | 
| boolean waitForIdle | ( | ) | 
| boolean waitForIdle | ( | long | timeout | ) | 
| boolean waitForStop | ( | ) | 
| boolean waitForStop | ( | long | timeout | ) | 
      
  | 
  static | 
      
  | 
  static |