public abstract class AbstractActorProcessor<T> extends java.lang.Object implements ActorProcessor<T>
Constructor and Description |
---|
AbstractActorProcessor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getThreadName()
Returns the current thread name.
|
void |
onProcessComplete()
Called when all items in the queue are processed.
|
void |
onProcessStart()
Called when all items in the queue are processed.
|
abstract void |
process(T item)
Process a single item.
|
public java.lang.String getThreadName()
getThreadName
in interface ActorProcessor<T>
public void onProcessStart() throws java.lang.Exception
onProcessStart
in interface ActorProcessor<T>
java.lang.Exception
public abstract void process(T item) throws java.lang.Exception
process
in interface ActorProcessor<T>
java.lang.Exception
public void onProcessComplete() throws java.lang.Exception
onProcessComplete
in interface ActorProcessor<T>
java.lang.Exception