public final class DBRequestProcessor
extends java.lang.Object
DBRequestProcessorFactory.| Modifier and Type | Class and Description |
|---|---|
class |
DBRequestProcessor.DBRunnable
Specific Runnable implementation for a process that works against a
given DBObjectProvider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(java.lang.String key)
Cancels a task that was previously scheduled with the given key.
|
java.util.concurrent.Future<?> |
execute(DBRequestProcessor.DBRunnable run)
Post the given runnable to the process queue for immediate execution.
|
void |
schedule(java.lang.String key,
DBRequestProcessor.DBRunnable run,
int delay)
Schedules a given runnable to run after a delay.
|
public java.util.concurrent.Future<?> execute(DBRequestProcessor.DBRunnable run)
run - the runnable to executepublic void schedule(java.lang.String key,
DBRequestProcessor.DBRunnable run,
int delay)
key - the key to schedule byrun - the runnable to schedule after the delaydelay - the delay to wait for before executing the runnablepublic void cancel(java.lang.String key)
key - the key for the task to cancelschedule(String,DBRunnable,int)