public abstract class WorkerStrategy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
abort |
protected int |
executed |
protected int |
threadId |
Constructor and Description |
---|
WorkerStrategy() |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute()
Abstract method, this method should contain the body of the worker
strategy
|
int |
getExecutedCounter() |
int |
getThreadID() |
void |
shutdown()
shutdown the current worker
|
java.lang.String |
toString() |
protected volatile int executed
protected int threadId
protected volatile boolean abort
public abstract void execute()
public void shutdown()
public int getExecutedCounter()
public int getThreadID()
public java.lang.String toString()
toString
in class java.lang.Object