public interface EventReply
| Modifier and Type | Method and Description |
|---|---|
static EventReply |
accepted()
Returns an event reply for which
wasAccepted() returns true and does not block. |
String |
getMessage()
Gets a short string describing the acceptance or rejection.
|
boolean |
wasAccepted(Duration timeout)
Gets a boolean flag, blocking if need be, which tells whether an event was accepted.
|
static EventReply accepted()
wasAccepted() returns true and does not block.boolean wasAccepted(Duration timeout) throws InterruptedException, TimeoutException
timeout - How long to wait for the decision.InterruptedException - if interrupted.TimeoutException - if the wait times out.getMessage()String getMessage() throws InterruptedException
InterruptedExceptionIllegalStateException - if wasAccepted() wasn't called or threw an exception.#wasAccepted()Copyright © 2019 LSST. All rights reserved.