BackgroundCleaner, BTreePostCommit, HeapPostCommit, LogToFile, ReclaimSpace, RemoveFilepublic interface Serviceable
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DONE |
return status for performWork - only meaningful for enqueued client
|
static int |
REQUEUE |
| Modifier and Type | Method | Description |
|---|---|---|
int |
performWork(ContextManager context) |
Do whatever it is that you want the daemon to do for you.
|
boolean |
serviceASAP() |
If this work should be done as soon as possible, then return true.
|
boolean |
serviceImmediately() |
If this work should be done immediately on the user thread then return true.
|
static final int DONE
static final int REQUEUE
int performWork(ContextManager context) throws StandardException
context - the contextManager set up by the DaemonService. There
may or may not be the necessary context on it, depending on which other
Serviceable object it has done work for.StandardException - Standard Derby exception policy
MT - depends on the work. Be wary of multiple DaemonService thread calling at the same time if you subscribe or enqueue multiple times.
boolean serviceASAP()
MT - MT safe
boolean serviceImmediately()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.