Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
TimerEventListener |
|
| 1.0;1 |
1 | package expectj; | |
2 | ||
3 | /** | |
4 | * This interface represents the events triggered by Timer class | |
5 | */ | |
6 | interface TimerEventListener { | |
7 | /** | |
8 | * Called when the timer times out. | |
9 | */ | |
10 | void timerTimedOut(); | |
11 | ||
12 | /** | |
13 | * This method is invoked by the Timer, when the timer thread | |
14 | * receives an interrupted exception. | |
15 | * | |
16 | * @param reason Why we were interrupted. | |
17 | */ | |
18 | void timerInterrupted(InterruptedException reason); | |
19 | } |