|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReactorControl
Defines the API for controlling the reactor service. The reactor object is
always a singleton and this interface can only be accessed via its
getReactorControl static method.
| Method Summary | |
|---|---|
void |
join()
Waits for the reactor thread to exit. |
void |
start(MonotonicClockSource clockSource,
ReactorLogTarget logTarget)
Starts the reactor running. |
void |
stop()
Requests that the reactor stop running. |
| Method Detail |
|---|
void start(MonotonicClockSource clockSource,
ReactorLogTarget logTarget)
throws ThreadableRunningException
clockSource - This is a monotonic clock which will be used as the timebase for
the reactor.logTarget - This is the logging service to which all reactor log messages are
redirected.
ThreadableRunningException - This exception is thrown if there is already a reactor thread
running. This indicates a programming error.void stop()
join method.
void join()
throws java.lang.InterruptedException
stop method.
java.lang.InterruptedException - This exception is thrown if the calling thread is interrupted
before the reactor shutdown is complete. An Error is thrown if
the corresponding error condition caused the reactor to shut
down.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||