protected class AbstractKeyBundler.Bundle extends AbstractBundler.Bundle
Base.LoggingWriter, Base.StackFrame
STATUS_EXCEPTION, STATUS_OPEN, STATUS_PENDING, STATUS_PROCESSED
Modifier | Constructor and Description |
---|---|
protected |
Bundle()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
add(Object oKey)
Add the specified key to the Bundle.
|
protected boolean |
addAll(Collection colKeys)
Add the specified collection of keys to the Bundle.
|
protected void |
ensureResults()
Obtain results of the bundled requests.
|
protected int |
getBundleSize()
Obtain this bundle size.
|
protected Object |
process(boolean fBurst,
Object oKey)
Process the specified key according to this Bundle state.
|
protected Map |
processAll(boolean fBurst,
Collection colKeys)
Process the specified key collection according to this Bundle state.
|
protected boolean |
releaseThread()
Release all bundle resources associated with the current thread.
|
ensureResults, formatStatusName, isException, isMaster, isOpen, isPending, isProcessed, resetStatistics, setMaster, setStatus, toString, waitForResults
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 boolean add(Object oKey)
Note: a call to this method must be externally synchronized for this Bundle object.
oKey
- the key to add to this Bundleprotected boolean addAll(Collection colKeys)
Note: a call to this method must be externally synchronized for this Bundle object.
colKeys
- the collection of keys to add to this Bundleprotected Object process(boolean fBurst, Object oKey)
fBurst
- true if this thread is supposed to perform an actual
bundled operation (burst); false otherwiseoKey
- the key to processprotected Map processAll(boolean fBurst, Collection colKeys)
fBurst
- true if this thread is supposed to perform an actual
bundled operation (burst); false otherwisecolKeys
- the collection of keys to processprotected int getBundleSize()
getSizeThreshold
method.getBundleSize
in class AbstractBundler.Bundle
protected void ensureResults()
ensureResults
in class AbstractBundler.Bundle
protected boolean releaseThread()
releaseThread
in class AbstractBundler.Bundle