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
IOException
public UartbusConnectionDistributor getDistributor()
public static UartbusConnectionDistributorUnit connectTcp(String ip, int port) throws IOException
IOException
public static UartbusConnectionDistributorUnit wrapConnection(Closeable onClose, UartbusConnection conn) throws IOException
IOException
public void start()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2020. All rights reserved.