com.zynaptic.reaction
Interface Timeable<T>
- Type Parameters:
T - This type parameter specifies the type of timer data objects which
may be accepted by the timeable object.
public interface Timeable<T>
Defines the interface to a timeable object. Timeable objects can be submitted
to the reactor in order to request timed callbacks via this interface. Timed
callbacks may be one-shot or repeating, depending on which method was used to
submit them to the reactor.
|
Method Summary |
void |
onTick(T data)
Receives a timed event callback from the reactor. |
onTick
void onTick(T data)
- Receives a timed event callback from the reactor. This method is executed
by the reactor in response to a timed event. Depending on context, this may
either be a one-shot event or repeated at intervals.
- Parameters:
data - This is the timer data object which was associated with the timed
event when it was submitted to the reactor.