public class TraceItemDispatcher extends Object implements Runnable
Internal use only.
.A dispatcher for TraceItems
Constructor and Description |
---|
TraceItemDispatcher() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertNotNull(String fieldName,
Object fieldValue)
Verify that the specified value is not null.
|
void |
dispatch(TraceItem item)
Add an item to the trace queue.
|
void |
disposeTraceItem(TraceItem item)
Dispose of a trace item.
|
void |
flush() |
TraceItem |
getNewTraceItem()
Return a trace item
|
TraceItemQueue |
getTraceItemQueue()
Get the queue.
|
boolean |
isBufferingEnabled()
Return true if buffering is enabled.
|
void |
run() |
void |
setBufferingEnabled(boolean enabled)
Set whether or not to buffer the output of the trace calls.
|
public TraceItemQueue getTraceItemQueue()
public void dispatch(TraceItem item)
item
- The item to add.public void setBufferingEnabled(boolean enabled)
enabled
- True if buffering should be enabledpublic boolean isBufferingEnabled()
public void flush()
public TraceItem getNewTraceItem()
public void disposeTraceItem(TraceItem item)
item
- The item to dispose.protected final void assertNotNull(String fieldName, Object fieldValue) throws DetailedNullPointerException
fieldName
- The name of the field to checkfieldValue
- The value of the field to checkDetailedNullPointerException
- If fieldValue is nullCopyright © 1998–2014 Gargoyle Software Inc.. All rights reserved.