public abstract class ExecutorOperationSupport<T extends ExecutorServiceProvider> extends Object
Constructor and Description |
---|
ExecutorOperationSupport() |
Modifier and Type | Method and Description |
---|---|
void |
addOperationListener(ExecutorOperationListener listener) |
void |
addTask(Runnable r) |
void |
cleanupOperations(Runnable... onComplete) |
protected void |
clearQueue() |
protected void |
endExecution() |
abstract T |
getContext() |
protected abstract String |
getName() |
int |
getOperationsCount() |
void |
removeOperationListener(ExecutorOperationListener listener) |
protected void |
startExecution() |
protected boolean |
startTask(Runnable r) |
protected void |
taskAdded() |
public abstract T getContext()
public void addTask(Runnable r)
protected abstract String getName()
protected void clearQueue()
protected void taskAdded()
protected boolean startTask(Runnable r)
public int getOperationsCount()
public void addOperationListener(ExecutorOperationListener listener)
public void removeOperationListener(ExecutorOperationListener listener)
public void cleanupOperations(Runnable... onComplete)
protected void startExecution()
protected void endExecution()
Copyright © 2024. All rights reserved.