public class UartbusConnectionDistributorUnit extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected UartbusConnection |
connection |
protected UartbusConnectionDistributor |
dist |
protected static eu.javaexperience.log.Logger |
LOG |
protected Thread |
receiver |
| Constructor and Description |
|---|
UartbusConnectionDistributorUnit(UartbusConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static UartbusConnectionDistributorUnit |
connectTcp(String ip,
int port) |
UartbusConnectionDistributor |
getDistributor() |
void |
start() |
static UartbusConnectionDistributorUnit |
wrapConnection(Closeable onClose,
UartbusConnection conn) |
protected static final eu.javaexperience.log.Logger LOG
protected final UartbusConnectionDistributor dist
protected final Thread receiver
protected final UartbusConnection connection
public UartbusConnectionDistributorUnit(UartbusConnection conn) throws IOException
IOExceptionpublic UartbusConnectionDistributor getDistributor()
public static UartbusConnectionDistributorUnit connectTcp(String ip, int port) throws IOException
IOExceptionpublic static UartbusConnectionDistributorUnit wrapConnection(Closeable onClose, UartbusConnection conn) throws IOException
IOExceptionpublic void start()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2020. All rights reserved.