Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
TcpReadClient(Consumer<AisPacket> packetConsumer,
IClientStoppedListener stopListener,
Socket socket,
TcpClientConf conf)
Instantiates a new Tcp read client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AisPacket packet) |
void |
cancel()
Stop the client
|
void |
run() |
getRemoteHost, getStatus, rateReport, stoppingactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic TcpReadClient(Consumer<AisPacket> packetConsumer, IClientStoppedListener stopListener, Socket socket, TcpClientConf conf)
packetConsumer - the packet consumerstopListener - the stop listenersocket - the socketconf - the confpublic void cancel()
TcpClientCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.