public abstract class AbstractKeyBundler extends AbstractBundler
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractKeyBundler.Bundle
Bundle represents a unit of optimized execution.
|
AbstractBundler.Statistics
Base.LoggingWriter, Base.StackFrame
ADJUSTMENT_FREQUENCY, m_countThreads, m_dPreviousSizeThreshold, m_listBundle
Constructor and Description |
---|
AbstractKeyBundler() |
Modifier and Type | Method and Description |
---|---|
protected abstract Map |
bundle(Collection colKeys)
The bundle operation to be performed against a collected set of keys
by the concrete AbstractKeyBundler implementations.
|
protected AbstractBundler.Bundle |
instantiateBundle()
Instantiate a new Bundle object.
|
protected Object |
process(Object oKey)
Process the specified key in a most optimal way according to the
bundle settings.
|
protected Map |
processAll(Collection colKeys)
Process a colKeys of specified items in a most optimal way according to
the bundle settings.
|
protected abstract Object |
unbundle(Object oKey)
Un-bundle bundled operation.
|
adjust, getDelayMillis, getOpenBundle, getSizeThreshold, getThreadThreshold, isAllowAutoAdjust, resetStatistics, setAllowAutoAdjust, setDelayMillis, setSizeThreshold, setThreadThreshold, toString, updateStatistics
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, 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, 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
protected Object process(Object oKey)
oKey
- the key to processprotected Map processAll(Collection colKeys)
colKeys
- the collection of keys to processprotected abstract Map bundle(Collection colKeys)
colKeys
- a key collection to perform the bundled operation forprotected abstract Object unbundle(Object oKey)
ThreadThreshold
value.oKey
- a key to perform the un-bundled operation forprotected AbstractBundler.Bundle instantiateBundle()
instantiateBundle
in class AbstractBundler