public abstract class UartbusThreadLocalDistributor extends Object implements UartbusConnection
| Modifier and Type | Field and Description |
|---|---|
protected UartbusConnection |
conn |
| Constructor and Description |
|---|
UartbusThreadLocalDistributor(UartbusConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getAttribute(String key) |
byte[] |
getNextPacket() |
void |
init() |
Map<String,String> |
listAttributes() |
protected abstract void |
resetAfterCall() |
void |
sendPacket(byte[] data) |
void |
setAttribute(String key,
String value) |
protected abstract void |
setBeforeCall() |
protected UartbusConnection conn
public UartbusThreadLocalDistributor(UartbusConnection conn)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected abstract void setBeforeCall()
protected abstract void resetAfterCall()
public void sendPacket(byte[] data)
throws IOException
sendPacket in interface UartbusConnectionIOExceptionpublic Map<String,String> listAttributes()
listAttributes in interface UartbusConnectionpublic String getAttribute(String key) throws IOException
getAttribute in interface UartbusConnectionIOExceptionpublic void setAttribute(String key, String value) throws IOException
setAttribute in interface UartbusConnectionIOExceptionpublic byte[] getNextPacket()
throws IOException
getNextPacket in interface UartbusConnectionIOExceptionpublic void init()
init in interface UartbusConnectionCopyright © 2020. All rights reserved.