Class RxtxChannel
- All Implemented Interfaces:
Channel, ChannelOutboundInvoker, AttributeMap, Comparable<Channel>
Deprecated.
this transport will be removed in the next major version.
A channel to a serial device using the RXTX library.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractChannel
AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface Channel
Channel.Unsafe -
Field Summary
Fields inherited from class AbstractOioChannel
SO_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()Deprecated.Returns the configuration of this channel.protected voiddoBind(SocketAddress localAddress) Deprecated.Bind theChannelto theSocketAddressprotected voiddoClose()Deprecated.Close theChannelprotected voiddoConnect(SocketAddress remoteAddress, SocketAddress localAddress) Deprecated.Connect to the remote peer using the given localAddress if one is specified ornullotherwise.protected voidDeprecated.Disconnect thisChannelfrom its remote peerprotected voiddoInit()Deprecated.protected booleanDeprecated.Determine if the input side of this channel is shutdown.booleanisOpen()Deprecated.Returnstrueif theChannelis open and may get active laterDeprecated.Returns the local address where this channel is bound to.protected RxtxDeviceAddressDeprecated.Returns theSocketAddresswhich is bound locally.protected AbstractChannel.AbstractUnsafeDeprecated.Create a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannelDeprecated.Returns the remote address where this channel is connected to.protected RxtxDeviceAddressDeprecated.Return theSocketAddresswhich theChannelis connected to.protected ChannelFutureDeprecated.Shutdown the input side of this channel.Methods inherited from class OioByteStreamChannel
activate, available, doReadBytes, doWriteBytes, doWriteFileRegion, isActiveMethods inherited from class AbstractOioByteChannel
doRead, doWrite, filterOutboundMessage, metadataMethods inherited from class AbstractOioChannel
clearReadPending, doBeginRead, isCompatible, isReadPending, setReadPendingMethods inherited from class AbstractChannel
closeFuture, compareTo, doDeregister, doRegister, doRegister, doShutdownOutput, equals, eventLoop, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, maxMessagesPerWrite, newChannelPipeline, newId, parent, pipeline, toString, unsafe, validateFileRegion, voidPromiseMethods inherited from class DefaultAttributeMap
attr, hasAttrMethods inherited from interface AttributeMap
attr, hasAttrMethods inherited from interface Channel
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, getOption, isWritable, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, read, setOption, write, write, writeAndFlush, writeAndFlush
-
Constructor Details
-
RxtxChannel
public RxtxChannel()Deprecated.
-
-
Method Details
-
config
-
isOpen
-
newUnsafe
Deprecated.Description copied from class:AbstractChannelCreate a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannel- Overrides:
newUnsafein classAbstractOioChannel
-
doConnect
Deprecated.Description copied from class:AbstractOioChannelConnect to the remote peer using the given localAddress if one is specified ornullotherwise.- Specified by:
doConnectin classAbstractOioChannel- Throws:
Exception
-
doInit
-
localAddress
Deprecated.Description copied from interface:ChannelReturns the local address where this channel is bound to. The returnedSocketAddressis supposed to be down-cast into more concrete type such asInetSocketAddressto retrieve the detailed information.- Specified by:
localAddressin interfaceChannel- Overrides:
localAddressin classAbstractChannel- Returns:
- the local address of this channel.
nullif this channel is not bound.
-
remoteAddress
Deprecated.Description copied from interface:ChannelReturns the remote address where this channel is connected to. The returnedSocketAddressis supposed to be down-cast into more concrete type such asInetSocketAddressto retrieve the detailed information.- Specified by:
remoteAddressin interfaceChannel- Overrides:
remoteAddressin classAbstractChannel- Returns:
- the remote address of this channel.
nullif this channel is not connected. If this channel is not connected but it can receive messages from arbitrary remote addresses (e.g.DatagramChannel, useDefaultAddressedEnvelope.recipient()to determine the origination of the received message as this method will returnnull.
-
localAddress0
Deprecated.Description copied from class:AbstractChannelReturns theSocketAddresswhich is bound locally.- Specified by:
localAddress0in classAbstractChannel
-
remoteAddress0
Deprecated.Description copied from class:AbstractChannelReturn theSocketAddresswhich theChannelis connected to.- Specified by:
remoteAddress0in classAbstractChannel
-
doBind
Deprecated.Description copied from class:AbstractChannelBind theChannelto theSocketAddress- Specified by:
doBindin classAbstractChannel- Throws:
Exception
-
doDisconnect
Deprecated.Description copied from class:AbstractChannelDisconnect thisChannelfrom its remote peer- Specified by:
doDisconnectin classAbstractChannel- Throws:
Exception
-
doClose
Deprecated.Description copied from class:AbstractChannelClose theChannel- Overrides:
doClosein classOioByteStreamChannel- Throws:
Exception
-
isInputShutdown
protected boolean isInputShutdown()Deprecated.Description copied from class:AbstractOioByteChannelDetermine if the input side of this channel is shutdown.- Specified by:
isInputShutdownin classAbstractOioByteChannel- Returns:
trueif the input side of this channel is shutdown.
-
shutdownInput
Deprecated.Description copied from class:AbstractOioByteChannelShutdown the input side of this channel.- Specified by:
shutdownInputin classAbstractOioByteChannel- Returns:
- A channel future that will complete when the shutdown is complete.
-