public abstract class WorkerThreadCallback
extends java.lang.Object
Get information about what is happening inside each WorkerThread
This an abstract base class than must be inherited in order to provide the implementation for the call() method.Modifier and Type | Field and Description |
---|---|
static int |
WT_ATOM_CONSUME
Thread consumed an Atom.
|
static int |
WT_ATOM_GET
Thread just got an Atom for its inmediate consumption.
|
static int |
WT_ATOMCONSUMER_NOMORE
AtomConsumer for thread found no more pending Atoms
A reference to the AtomConsumer will be in the 5th parameter of call() method
|
static int |
WT_EXCEPTION
Thread throwed and Exception
The throwed Exception will be in the 4th parameter of call() method
|
static int |
WT_JOB_FINISH
Thread finished a Job execution
A reference to the finished Job will be in the 5th parameter of call() method
|
static int |
WT_JOB_INSTANTIATE
Thread instantiated a Job subclass
A reference to the instantiated Job will be in the 5th parameter of call() method
|
Constructor and Description |
---|
WorkerThreadCallback(java.lang.String sCallbackName) |
public static final int WT_EXCEPTION
Thread throwed and Exception
The throwed Exception will be in the 4th parameter of call() method
public static final int WT_JOB_INSTANTIATE
Thread instantiated a Job subclass
A reference to the instantiated Job will be in the 5th parameter of call() method
public static final int WT_JOB_FINISH
Thread finished a Job execution
A reference to the finished Job will be in the 5th parameter of call() method
public static final int WT_ATOMCONSUMER_NOMORE
AtomConsumer for thread found no more pending Atoms
A reference to the AtomConsumer will be in the 5th parameter of call() method
public static final int WT_ATOM_GET
Thread just got an Atom for its inmediate consumption.
Called before Atom is consumed.
A reference to the Atom will be in the 5th parameter of call() method
public static final int WT_ATOM_CONSUME
Thread consumed an Atom.
Called after Atom is consumed.
A reference to the Atom will be in the 5th parameter of call() method
public WorkerThreadCallback(java.lang.String sCallbackName)
sCallbackName
- Each callback instance must have a unique namepublic java.lang.String name()
public abstract void call(java.lang.String sThreadId, int iOpCode, java.lang.String sMessage, java.lang.Exception oXcpt, java.lang.Object oParam)
Provide information about thread execution milestones
sThreadId
- String identifying the caller WorkerThreadiOpCode
- Operation code (see static constants)sMessage
- Descriptive messageoXcpt
- Exception thrown by WorkerThread.oParam
- Object related to operation.