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 Closeable
close
in interface AutoCloseable
IOException
protected abstract void setBeforeCall()
protected abstract void resetAfterCall()
public void sendPacket(byte[] data) throws IOException
sendPacket
in interface UartbusConnection
IOException
public Map<String,String> listAttributes()
listAttributes
in interface UartbusConnection
public String getAttribute(String key) throws IOException
getAttribute
in interface UartbusConnection
IOException
public void setAttribute(String key, String value) throws IOException
setAttribute
in interface UartbusConnection
IOException
public byte[] getNextPacket() throws IOException
getNextPacket
in interface UartbusConnection
IOException
public void init()
init
in interface UartbusConnection
Copyright © 2020. All rights reserved.