public class UartbusTransaction extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
UartBus |
bus |
int |
from |
protected static eu.javaexperience.log.Logger |
LOG |
byte[] |
path |
byte[] |
payload |
byte[] |
responsePayload |
boolean |
revoked |
int |
to |
protected eu.javaexperience.multithread.notify.WaitForSingleEvent |
wait
response section
|
boolean |
zeroNamespaceAnswer |
| Constructor and Description |
|---|
UartbusTransaction(UartBus bus) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
ensureResponse(long timeout,
TimeUnit unit) |
byte[] |
ensureResponse(long timeout,
TimeUnit unit,
String errAppendMsg) |
protected void |
finalize() |
boolean |
isResponsed() |
boolean |
isRevoked() |
protected void |
receiveResponse(byte[] data) |
void |
send() |
byte[] |
toPacket() |
boolean |
tryAcceptResponse(ParsedUartBusPacket a) |
boolean |
waitResponse(long timeout,
TimeUnit unit) |
protected static final eu.javaexperience.log.Logger LOG
public final UartBus bus
public boolean zeroNamespaceAnswer
public int to
public int from
public byte[] path
public byte[] payload
public volatile boolean revoked
public volatile byte[] responsePayload
protected final eu.javaexperience.multithread.notify.WaitForSingleEvent wait
public UartbusTransaction(UartBus bus)
public byte[] toPacket()
public void send()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected void finalize()
throws Throwable
public boolean isResponsed()
public boolean isRevoked()
public boolean waitResponse(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic byte[] ensureResponse(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic byte[] ensureResponse(long timeout,
TimeUnit unit,
String errAppendMsg)
throws InterruptedException
InterruptedExceptionprotected void receiveResponse(byte[] data)
public boolean tryAcceptResponse(ParsedUartBusPacket a)
Copyright © 2020. All rights reserved.