public interface ReactorControl
getReactorControl
static method.Modifier and Type | Method and Description |
---|---|
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.
|
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.