C - The base class for all commands sent and received by this implementationE - The base class for all events sent and received by this implementationT - The base class for all telemetry sent and received by this implementationpublic interface SAL<C extends SALCommand,E extends SALEvent,T extends SALTelemetry> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SALReceivedCommand<C> |
getNextCommand(Duration timeout)
Fetch the next command, or timeout if specified duration is exceeded.
|
E |
getNextEvent(Duration timeout) |
T |
getTelemetry(Duration timeout) |
SALCommandResponse |
issueCommand(C command)
Issue a command,
|
void |
logEvent(E event)
Sends an event
|
void |
sendTelemetry(T telemetry) |
SALReceivedCommand<C> getNextCommand(Duration timeout) throws SALException
timeout - The maximum time to wait before timing outnull if the wait
times-out.SALException - If a communication or similar
error occursSALCommandResponse issueCommand(C command) throws SALException
command - The command to issue.SALException - If a communication or similar error occursvoid logEvent(E event) throws SALException
event - The event to sendSALException - If a communication or similar error occursE getNextEvent(Duration timeout) throws SALException
SALExceptionvoid sendTelemetry(T telemetry) throws SALException
SALExceptionT getTelemetry(Duration timeout) throws SALException
SALExceptionvoid close()
throws SALException
close in interface AutoCloseableSALExceptionCopyright © 2018. All rights reserved.