|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfulmine.event.EventQueueItem<EVENT>
EVENT - the event class that is wrappedpublic final class EventQueueItem<EVENT>
Wraps an event that is placed onto an event queue. This encapsulates timings of event creation to the microsecond.
| Field Summary | |
|---|---|
static ThreadLocal<Boolean> |
isStatisticsEvent
Thread local for a thread to 'tag' an event being queued onto the IEventManager.queueEvent(fulmine.event.IEvent) as being a
statistics event and should thus not log statistics about the event. |
| Constructor Summary | |
|---|---|
EventQueueItem(EVENT event)
Construct the event queue item wrapping an event |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
long |
getCreateTimeMicro()
Get the time this item was created in microseconds |
long |
getElapsedTimeMicro()
Get the elapsed time in microseconds between now and when the item was created |
EVENT |
getEvent()
Get the event |
int |
hashCode()
|
boolean |
isStatisticsEvent()
Determine if this event is a statistics event. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static ThreadLocal<Boolean> isStatisticsEvent
IEventManager.queueEvent(fulmine.event.IEvent) as being a
statistics event and should thus not log statistics about the event.
| Constructor Detail |
|---|
public EventQueueItem(EVENT event)
event - the event to wrap| Method Detail |
|---|
public EVENT getEvent()
public long getCreateTimeMicro()
public boolean isStatisticsEvent()
true if this is a statistics eventpublic long getElapsedTimeMicro()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||