public class DelegatingTimerListener extends Object implements TimerListener
TimerListener
,
Runnable
Constructor and Description |
---|
DelegatingTimerListener(Runnable runnable)
Create a new DelegatingTimerListener.
|
Modifier and Type | Method and Description |
---|---|
void |
timerExpired(Timer timer)
Delegates execution to the underlying Runnable.
|
public DelegatingTimerListener(Runnable runnable)
runnable
- the Runnable implementation to delegate topublic void timerExpired(Timer timer)
timerExpired
in interface TimerListener