2.3 The Reactor Singleton Object

Within any application there will only be a single reactor component. This is implemented as the ReactorCore singleton, which provides static accessor methods for obtaining a handle on its various interfaces. The accessor methods of interest are shown in Listing 2.5. All access to the reactor itself should be via these two interfaces - the Reactor interface providing the user API and the ReactorControl interface providing control over the reactor lifecycle.


\begin{listing}
% latex2html id marker 413\begin{small}\begin{verbatim}packa...
...{verbatim} \end{small}\caption{Reactor Interface Accessor Methods}
\end{listing}