public interface SerialSession extends IoSession
IoSession
for serial communication transport.Modifier and Type | Method and Description |
---|---|
SerialSessionConfig |
getConfig() |
SerialAddress |
getLocalAddress() |
SerialAddress |
getRemoteAddress() |
SerialAddress |
getServiceAddress() |
boolean |
isDTR() |
boolean |
isRTS() |
void |
setDTR(boolean dtr)
Sets or clears the DTR (Data Terminal Ready) bit in the UART, if supported by the underlying implementation.
|
void |
setRTS(boolean rts)
Sets or clears the RTS (Request To Send) bit in the UART, if supported by the underlying implementation.
|
close, close, closeNow, closeOnFlush, containsAttribute, getAttachment, getAttribute, getAttribute, getAttributeKeys, getBothIdleCount, getCloseFuture, getCreationTime, getCurrentWriteMessage, getCurrentWriteRequest, getFilterChain, getHandler, getId, getIdleCount, getLastBothIdleTime, getLastIdleTime, getLastIoTime, getLastReaderIdleTime, getLastReadTime, getLastWriterIdleTime, getLastWriteTime, getReadBytes, getReadBytesThroughput, getReaderIdleCount, getReadMessages, getReadMessagesThroughput, getScheduledWriteBytes, getScheduledWriteMessages, getService, getTransportMetadata, getWriteRequestQueue, getWriterIdleCount, getWrittenBytes, getWrittenBytesThroughput, getWrittenMessages, getWrittenMessagesThroughput, isActive, isBothIdle, isClosing, isConnected, isIdle, isReaderIdle, isReadSuspended, isSecured, isWriterIdle, isWriteSuspended, read, removeAttribute, removeAttribute, replaceAttribute, resumeRead, resumeWrite, setAttachment, setAttribute, setAttribute, setAttributeIfAbsent, setAttributeIfAbsent, setCurrentWriteRequest, suspendRead, suspendWrite, updateThroughput, write, write
SerialSessionConfig getConfig()
SerialAddress getRemoteAddress()
getRemoteAddress
in interface IoSession
SerialAddress getLocalAddress()
getLocalAddress
in interface IoSession
SerialAddress getServiceAddress()
getServiceAddress
in interface IoSession
IoService
listens to to manage
this session. If this session is managed by IoAcceptor
, it
returns the SocketAddress
which is specified as a parameter of
IoAcceptor.bind()
. If this session is managed by
IoConnector
, this method returns the same address with
that of IoSession.getRemoteAddress()
.void setRTS(boolean rts)
rts
- true for set RTS, false for clearingboolean isRTS()
void setDTR(boolean dtr)
dtr
- true for set DTR, false for clearingboolean isDTR()
Copyright © 2004–2018 Apache MINA Project. All rights reserved.