Package com.tangosol.net.cache
Class ReadWriteBackingMap.WriteThread
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.Daemon
com.tangosol.net.cache.ReadWriteBackingMap.WriteThread
- Enclosing class:
ReadWriteBackingMap
This is the write-behind thread that pulls things from the write-behind
queue and writes them to the CacheStore that the backing map uses.
- Author:
- cp 2002.10.22
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.util.Daemon
Daemon.DaemonWorkerNested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanField used to tell theReadWriteBackingMap.WriteThreadto refresh itsGuardian.GuardContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()The daemon's implementation method.protected voidsetGuardPolicy(Guardian guardian, long cTimeoutMillis, float flPctRecover) Set the Guardian and policy to guard this Daemon with.voidTerminate this Guardable.Methods inherited from class com.tangosol.util.Daemon
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, setGuardRegisterAction, setThreadContextClassLoader, shutdown, start, stop, toStateString, toStringMethods inherited from class com.tangosol.util.Base
azzert, 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, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, newHashMap, newHashMap, newHashSet, newHashSet, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, 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, wait
-
Field Details
-
m_fRefreshContext
protected volatile boolean m_fRefreshContextField used to tell theReadWriteBackingMap.WriteThreadto refresh itsGuardian.GuardContext.
-
-
Constructor Details
-
WriteThread
public WriteThread()Default constructor.
-
-
Method Details
-
run
public void run()The daemon's implementation method. -
terminate
public void terminate()Terminate this Guardable.This is the final action taken by the Guardian before the Guardable is removed from its responsibility list.
-
setGuardPolicy
Set the Guardian and policy to guard this Daemon with. The Daemon is registered with the specified Guardian each time the Daemon is started, and is released each time the Daemon is stopped.- Overrides:
setGuardPolicyin classDaemon- Parameters:
guardian- the Guardian that will be guarding this DaemoncTimeoutMillis- the timeout in ms for this Daemon, or 0 for the service guardian timeoutflPctRecover- the recovery percentage for this Daemon
-