Note that this class can also be used as a base class, in case there is a need to attach extra information to a TimerEvent.
All access to this class is unsynchronized. This class must be used either as an immutable (no calls to update), or access must be restricted to a single thread (as in an iterator).
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private TimerEvent. | |
| private long | |
| private Timer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | TimerEvent(Timer timer, TimerEvent.
Create a TimerEvent at the given time. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public long | |
| public Timer | |
| public String | |
| public TimerEvent. | |
| public void | update(Timer timer, TimerEvent.
Re-use the same TimerEvent instance with different data. |
| etype | back to summary |
|---|---|
| private TimerEvent. | |
| time | back to summary |
|---|---|
| private long time | |
| timer | back to summary |
|---|---|
| private Timer timer | |
| TimerEvent | back to summary |
|---|---|
| public TimerEvent(TimerEvent te) | |
| TimerEvent | back to summary |
|---|---|
| public TimerEvent(Timer timer, TimerEvent. Create a TimerEvent at the current time. | |
| TimerEvent | back to summary |
|---|---|
| public TimerEvent(Timer timer, TimerEvent. Create a TimerEvent at the given time. | |
| incrementTime | back to summary |
|---|---|
| public void incrementTime(long update) | |
| internalSetData | back to summary |
|---|---|
| private void internalSetData(Timer timer, TimerEvent. | |
| time | back to summary |
|---|---|
| public long time() Time of event in nanoseconds since the TimerLog was created or cleared. | |
| timer | back to summary |
|---|---|
| public Timer timer() The name of the Timer used to create this entry. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| type | back to summary |
|---|---|
| public TimerEvent. Type of event: ENTER for start of interval for a Timer, EXIT for end of the interval. | |
| update | back to summary |
|---|---|
| public void update(Timer timer, TimerEvent. Re-use the same TimerEvent instance with different data. Used to create flyweight instances for iteration over a collection of TimerEvent instances. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TimerEvent. | |
| public static final TimerEvent. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TimerEvent. | |
| public static TimerEvent. |
| ENTER | back to summary |
|---|---|
| public static final TimerEvent. | |
| EXIT | back to summary |
|---|---|
| public static final TimerEvent. | |
| TimerEventType | back to summary |
|---|---|
| private TimerEventType() | |
| valueOf | back to summary |
|---|---|
| public static TimerEvent. | |
| values | back to summary |
|---|---|
| public static TimerEvent. | |