@Retention(value=RUNTIME)
@Target(value={METHOD,CONSTRUCTOR})
public @interface Timer
TimerState.START), to suspend the timer temporarily
(TimerState.SUSPEND) in order to resume it later
(TimerState.RESUME) or to terminate the timer cycle in order to
notify observers about a completed timing event.| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
id
An arbitrary id representing the associated timer.
|
TimerState |
state
Defines the next state of the timer.
|
| Modifier and Type | Optional Element and Description |
|---|---|
TimerPosition |
affectAt
Defines where to affect the instrumented method/constructor.
|
boolean |
considerThreads
Should be
false (default) if id is
thread save and threads must not be considered explicitly,
false else. |
public abstract java.lang.String id
ValueContext.public abstract TimerState state
public abstract TimerPosition affectAt
TimerPosition.DEFAULT, i.e.
TimerState.getDefaultPosition().