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 RxtxChannelConfig
config()
Deprecated.Returns the configuration of this channel.protected void
doBind(java.net.SocketAddress localAddress)
Deprecated.Bind theChannel
to theSocketAddress
protected void
doClose()
Deprecated.Close theChannel
protected void
doConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)
Deprecated.Connect to the remote peer using the given localAddress if one is specified ornull
otherwise.protected void
doDisconnect()
Deprecated.Disconnect thisChannel
from its remote peerprotected void
doInit()
Deprecated.protected boolean
isInputShutdown()
Deprecated.Determine if the input side of this channel is shutdown.boolean
isOpen()
Deprecated.Returnstrue
if theChannel
is open and may get active laterRxtxDeviceAddress
localAddress()
Deprecated.Returns the local address where this channel is bound to.protected RxtxDeviceAddress
localAddress0()
Deprecated.Returns theSocketAddress
which is bound locally.protected AbstractChannel.AbstractUnsafe
newUnsafe()
Deprecated.Create a newAbstractChannel.AbstractUnsafe
instance which will be used for the life-time of theChannel
RxtxDeviceAddress
remoteAddress()
Deprecated.Returns the remote address where this channel is connected to.protected RxtxDeviceAddress
remoteAddress0()
Deprecated.Return theSocketAddress
which theChannel
is connected to.protected ChannelFuture
shutdownInput()
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:Channel
Returns the configuration of this channel.
-
isOpen
public boolean isOpen()
Deprecated.Description copied from interface:Channel
Returnstrue
if theChannel
is open and may get active later
-
newUnsafe
protected AbstractChannel.AbstractUnsafe newUnsafe()
Deprecated.Description copied from class:AbstractChannel
Create a newAbstractChannel.AbstractUnsafe
instance which will be used for the life-time of theChannel
- Overrides:
newUnsafe
in classAbstractOioChannel
-
doConnect
protected void doConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress) throws java.lang.Exception
Deprecated.Description copied from class:AbstractOioChannel
Connect to the remote peer using the given localAddress if one is specified ornull
otherwise.- Specified by:
doConnect
in classAbstractOioChannel
- Throws:
java.lang.Exception
-
doInit
protected void doInit() throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
localAddress
public RxtxDeviceAddress localAddress()
Deprecated.Description copied from interface:Channel
Returns the local address where this channel is bound to. The returnedSocketAddress
is supposed to be down-cast into more concrete type such asInetSocketAddress
to retrieve the detailed information.- Specified by:
localAddress
in interfaceChannel
- Overrides:
localAddress
in classAbstractChannel
- Returns:
- the local address of this channel.
null
if this channel is not bound.
-
remoteAddress
public RxtxDeviceAddress remoteAddress()
Deprecated.Description copied from interface:Channel
Returns the remote address where this channel is connected to. The returnedSocketAddress
is supposed to be down-cast into more concrete type such asInetSocketAddress
to retrieve the detailed information.- Specified by:
remoteAddress
in interfaceChannel
- Overrides:
remoteAddress
in classAbstractChannel
- Returns:
- the remote address of this channel.
null
if 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:AbstractChannel
Returns theSocketAddress
which is bound locally.- Specified by:
localAddress0
in classAbstractChannel
-
remoteAddress0
protected RxtxDeviceAddress remoteAddress0()
Deprecated.Description copied from class:AbstractChannel
Return theSocketAddress
which theChannel
is connected to.- Specified by:
remoteAddress0
in classAbstractChannel
-
doBind
protected void doBind(java.net.SocketAddress localAddress) throws java.lang.Exception
Deprecated.Description copied from class:AbstractChannel
Bind theChannel
to theSocketAddress
- Specified by:
doBind
in classAbstractChannel
- Throws:
java.lang.Exception
-
doDisconnect
protected void doDisconnect() throws java.lang.Exception
Deprecated.Description copied from class:AbstractChannel
Disconnect thisChannel
from its remote peer- Specified by:
doDisconnect
in classAbstractChannel
- Throws:
java.lang.Exception
-
doClose
protected void doClose() throws java.lang.Exception
Deprecated.Description copied from class:AbstractChannel
Close theChannel
- Overrides:
doClose
in classOioByteStreamChannel
- Throws:
java.lang.Exception
-
isInputShutdown
protected boolean isInputShutdown()
Deprecated.Description copied from class:AbstractOioByteChannel
Determine if the input side of this channel is shutdown.- Specified by:
isInputShutdown
in classAbstractOioByteChannel
- Returns:
true
if the input side of this channel is shutdown.
-
shutdownInput
protected ChannelFuture shutdownInput()
Deprecated.Description copied from class:AbstractOioByteChannel
Shutdown the input side of this channel.- Specified by:
shutdownInput
in classAbstractOioByteChannel
- Returns:
- A channel future that will complete when the shutdown is complete.
-
-