public abstract class SALCommandResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SALCommandResponse.CommandFailedException |
| Constructor and Description |
|---|
SALCommandResponse() |
| Modifier and Type | Method and Description |
|---|---|
abstract Duration |
waitForAck(Duration timeout)
Wait until either an ack or nack is received, or the command completes.
|
abstract int |
waitForCompletion(Duration timeout)
Wait until the command completes
|
public abstract Duration waitForAck(Duration timeout) throws SALCommandResponse.CommandFailedException, SALException, TimeoutException
timeout - The maximum time to waitSALCommandResponse.CommandFailedException - If the command is rejectedTimeoutException - If the wait times outSALExceptionpublic abstract int waitForCompletion(Duration timeout) throws SALCommandResponse.CommandFailedException, SALException, TimeoutException
timeout - The maximum time to waitSALCommandResponse.CommandFailedException - If the command fails or is rejected.TimeoutException - If the wait times outSALExceptionCopyright © 2018. All rights reserved.