Package org.bluezoo.gumdrop
Interface TimerHandle
public interface TimerHandle
Handle for a scheduled timer, allowing cancellation.
Returned by timer scheduling methods to allow the caller to cancel a pending timer before it fires.
- Author:
- Chris Burdess
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels this timer.booleanReturns true if this timer has been cancelled.
-
Method Details
-
cancel
void cancel()Cancels this timer. If the timer has already fired, this has no effect. -
isCancelled
boolean isCancelled()Returns true if this timer has been cancelled.- Returns:
- true if cancelled
-