|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gargoylesoftware.base.trace.TraceItemDispatcher
Internal use only.
.A dispatcher for TraceItems
Constructor Summary | |
TraceItemDispatcher()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TraceItemDispatcher()
Method Detail |
public void run()
run
in interface Runnable
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 check
DetailedNullPointerException
- If fieldValue is null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |