protected class WorkManager.WorkHolder.Event extends Base implements commonj.work.WorkEvent
Base.LoggingWriter, Base.StackFrame
Constructor and Description |
---|
Event(int nType)
Construct a WorkEvent.
|
Modifier and Type | Method and Description |
---|---|
commonj.work.WorkException |
getException()
This returns the exception if any in the case of WORK_COMPLETED.
|
int |
getType()
Return an event type.
|
commonj.work.WorkItem |
getWorkItem()
This returns a WorkItem that represents the
Work submitted to a WorkManager.
|
String |
toString() |
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, 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, 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
public Event(int nType)
A reason we only need to pass the event type to the constructor is that if some one holds a reference to an Event object, all other information could be retrieved from the parent WorkHolder and is not a subject to change.
nType
- the event typepublic int getType()
getType
in interface commonj.work.WorkEvent
public commonj.work.WorkItem getWorkItem()
commonj.work.WorkEvent
getWorkItem
in interface commonj.work.WorkEvent
public commonj.work.WorkException getException()
commonj.work.WorkEvent
getException
in interface commonj.work.WorkEvent