public class SimpleWorkManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SimpleWorkManager.WorkType |
Constructor and Description |
---|
SimpleWorkManager(java.util.concurrent.Executor executor) |
Modifier and Type | Method and Description |
---|---|
void |
doWork(Work work) |
void |
doWork(Work work,
long startTimeout,
ExecutionContext executionContext,
WorkListener workListener) |
void |
scheduleWork(Work work) |
void |
scheduleWork(Work work,
long startTimeout,
ExecutionContext executionContext,
WorkListener workListener) |
long |
startWork(Work work) |
long |
startWork(Work work,
long startTimeout,
ExecutionContext executionContext,
WorkListener workListener) |
public SimpleWorkManager(java.util.concurrent.Executor executor)
public void doWork(Work work) throws WorkException
WorkException
public void doWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException
WorkException
public long startWork(Work work) throws WorkException
WorkException
public long startWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException
WorkException
public void scheduleWork(Work work) throws WorkException
WorkException
public void scheduleWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException
WorkException