1.6 Timed Events

A final type of event supported by the Reaction framework are timed events. In many applications it is necessary to schedule timeouts on long running transactions, and this is one application of timed events. An alternate use is to generate periodic events for triggering tasks which must be carried out at regular intervals. Objects which can receive timed events are referred to as timeable objects and implement the Timeable interface. A basic version of the Timeable interface is shown in Listing 1.6.


\begin{listing}
% latex2html id marker 149\begin{small}
\begin{verbatim}publ...
...rbatim}
\end{small}\caption{A Basic Timeable Interface Definition}
\end{listing}

Timed events are probably the simplest form of event in the Reaction framework repertoire, which is why they are the first to be discussed in detail in Chapter 3.