protected class AsyncBinaryStore.QueueDaemon extends Daemon
Daemon.DaemonWorkerBase.LoggingWriter, Base.StackFrame| Constructor and Description | 
|---|
QueueDaemon()
Construct a queue daemon to process pending writes. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
isDone()
Determine if the daemon thread should continue processing or should shut itself down. 
 | 
protected boolean | 
isDormant()
Determine whether the daemon is dormant or not. 
 | 
protected void | 
processPending(Binary binKey, Binary binValue)
Store the specified value under the specific key in the underlying store, or if the value is  
AsyncBinaryStore.DELETED then erase the value from the underlying store. | 
void | 
run()
This method is invoked on the daemon thread and performs the daemon processing until the thread stops. 
 | 
void | 
scheduleWork()
Notify the daemon that there is work to be done. 
 | 
protected void | 
setDormant(boolean fDormant)
Specify whether the daemon is dormant or not. 
 | 
protected void | 
takeBreak()
Take a short break before plowing into the pending work again. 
 | 
protected void | 
takeNap()
Take a nap before checking for more pending work. 
 | 
protected void | 
takeVacation()
Go on an extended vacation until there is any pending work. 
 | 
void | 
wakeNow()
Force the daemon to wake up immediately. 
 | 
changeState, configureWorker, ensureThreadGroup, finishStarting, finishStopping, getConfiguredName, getConfiguredPriority, getContext, getDescription, getGuardRegisterAction, getMaxWaitMillis, getState, getThread, getThreadContextClassLoader, getWorker, guardIfNeeded, heartbeat, heartbeat, instantiateWorker, isGuarded, isOnWorkerThread, isRunning, isStopping, recover, setConfiguredName, setConfiguredPriority, setContext, setGuardPolicy, setGuardRegisterAction, setThreadContextClassLoader, shutdown, start, stop, terminate, toStateString, toStringazzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, waitpublic QueueDaemon()
public void scheduleWork()
public void wakeNow()
public boolean isDone()
public void run()
protected void processPending(Binary binKey, Binary binValue)
AsyncBinaryStore.DELETED then erase the value from the underlying store.binKey - key to store the value underbinValue - value to be storedprotected void takeBreak()
protected void takeNap()
protected void takeVacation()
protected boolean isDormant()
protected void setDormant(boolean fDormant)
fDormant - pass true if the daemon is going dormant, or false if the daemon is waking up from a dormant state