CloudPlugs REST Library  1.0.0
for Java
RefSpooler Class Reference

A extension of Spooler with reference-counted start and stop. This class is for internal usage. More...

Inheritance diagram for RefSpooler:

Public Member Functions

 RefSpooler ()
 
 RefSpooler (Listener listener)
 
void ref ()
 
void unref ()
 
- Public Member Functions inherited from Spooler
 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)
 

Additional Inherited Members

- Static Public Attributes inherited from Spooler
static final long THREAD_NULL = 0
 
static final int ID_NULL = 0
 
- Protected Attributes inherited from MetaListener
Listener listener
 

Detailed Description

A extension of Spooler with reference-counted start and stop. This class is for internal usage.

Constructor & Destructor Documentation

◆ RefSpooler() [1/2]

◆ RefSpooler() [2/2]

RefSpooler ( Listener  listener)

Member Function Documentation

◆ ref()

void ref ( )

◆ unref()

void unref ( )