Package io.netty.channel.rxtx
Class RxtxChannel
- java.lang.Object
-
- All Implemented Interfaces:
Channel,ChannelOutboundInvoker,AttributeMap,java.lang.Comparable<Channel>
@Deprecated public class RxtxChannel extends OioByteStreamChannel
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 io.netty.channel.AbstractChannel
AbstractChannel.AbstractUnsafe
-
Nested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe
-
-
Field Summary
-
Fields inherited from class io.netty.channel.oio.AbstractOioChannel
SO_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description RxtxChannel()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RxtxChannelConfigconfig()Deprecated.Returns the configuration of this channel.protected voiddoBind(java.net.SocketAddress localAddress)Deprecated.Bind theChannelto theSocketAddressprotected voiddoClose()Deprecated.Close theChannelprotected voiddoConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)Deprecated.Connect to the remote peer using the given localAddress if one is specified ornullotherwise.protected voiddoDisconnect()Deprecated.Disconnect thisChannelfrom its remote peerprotected voiddoInit()Deprecated.protected booleanisInputShutdown()Deprecated.Determine if the input side of this channel is shutdown.booleanisOpen()Deprecated.Returnstrueif theChannelis open and may get active laterRxtxDeviceAddresslocalAddress()Deprecated.Returns the local address where this channel is bound to.protected RxtxDeviceAddresslocalAddress0()Deprecated.Returns theSocketAddresswhich is bound locally.protected AbstractChannel.AbstractUnsafenewUnsafe()Deprecated.Create a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannelRxtxDeviceAddressremoteAddress()Deprecated.Returns the remote address where this channel is connected to.protected RxtxDeviceAddressremoteAddress0()Deprecated.Return theSocketAddresswhich theChannelis connected to.protected ChannelFutureshutdownInput()Deprecated.Shutdown the input side of this channel.-
Methods inherited from class io.netty.channel.oio.OioByteStreamChannel
activate, available, doReadBytes, doWriteBytes, doWriteFileRegion, isActive
-
Methods inherited from class io.netty.channel.oio.AbstractOioByteChannel
doRead, doWrite, filterOutboundMessage, metadata
-
Methods inherited from class io.netty.channel.oio.AbstractOioChannel
clearReadPending, doBeginRead, isCompatible, isReadPending, setReadPending
-
Methods inherited from class io.netty.channel.AbstractChannel
closeFuture, compareTo, doDeregister, doRegister, doRegister, doShutdownOutput, equals, eventLoop, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, maxMessagesPerWrite, newChannelPipeline, newId, parent, pipeline, toString, unsafe, validateFileRegion, voidPromise
-
Methods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttr
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.util.AttributeMap
attr, hasAttr
-
Methods inherited from interface io.netty.channel.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
-
-
-
-
Method Detail
-
config
public RxtxChannelConfig config()
Deprecated.Description copied from interface:ChannelReturns the configuration of this channel.
-
isOpen
public boolean isOpen()
Deprecated.Description copied from interface:ChannelReturnstrueif theChannelis open and may get active later
-
newUnsafe
protected AbstractChannel.AbstractUnsafe newUnsafe()
Deprecated.Description copied from class:AbstractChannelCreate a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannel- Overrides:
newUnsafein classAbstractOioChannel
-
doConnect
protected void doConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress) throws java.lang.ExceptionDeprecated.Description copied from class:AbstractOioChannelConnect to the remote peer using the given localAddress if one is specified ornullotherwise.- Specified by:
doConnectin classAbstractOioChannel- Throws:
java.lang.Exception
-
doInit
protected void doInit() throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
localAddress
public RxtxDeviceAddress 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
public RxtxDeviceAddress 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
protected RxtxDeviceAddress localAddress0()
Deprecated.Description copied from class:AbstractChannelReturns theSocketAddresswhich is bound locally.- Specified by:
localAddress0in classAbstractChannel
-
remoteAddress0
protected RxtxDeviceAddress remoteAddress0()
Deprecated.Description copied from class:AbstractChannelReturn theSocketAddresswhich theChannelis connected to.- Specified by:
remoteAddress0in classAbstractChannel
-
doBind
protected void doBind(java.net.SocketAddress localAddress) throws java.lang.ExceptionDeprecated.Description copied from class:AbstractChannelBind theChannelto theSocketAddress- Specified by:
doBindin classAbstractChannel- Throws:
java.lang.Exception
-
doDisconnect
protected void doDisconnect() throws java.lang.ExceptionDeprecated.Description copied from class:AbstractChannelDisconnect thisChannelfrom its remote peer- Specified by:
doDisconnectin classAbstractChannel- Throws:
java.lang.Exception
-
doClose
protected void doClose() throws java.lang.ExceptionDeprecated.Description copied from class:AbstractChannelClose theChannel- Overrides:
doClosein classOioByteStreamChannel- Throws:
java.lang.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
protected ChannelFuture 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.
-
-