Package io.netty.channel.udt.nio
Class NioUdtAcceptorChannel
- java.lang.Object
-
- io.netty.util.DefaultAttributeMap
-
- io.netty.channel.AbstractChannel
-
- io.netty.channel.nio.AbstractNioChannel
-
- io.netty.channel.nio.AbstractNioMessageChannel
-
- io.netty.channel.udt.nio.NioUdtAcceptorChannel
-
- All Implemented Interfaces:
Channel
,ChannelOutboundInvoker
,ServerChannel
,UdtChannel
,UdtServerChannel
,AttributeMap
,java.lang.Comparable<Channel>
- Direct Known Subclasses:
NioUdtByteAcceptorChannel
,NioUdtMessageAcceptorChannel
@Deprecated public abstract class NioUdtAcceptorChannel extends AbstractNioMessageChannel implements UdtServerChannel
Deprecated.The UDT transport is no longer maintained and will be removed.Common base for Netty Byte/Message UDT Stream/Datagram acceptors.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty.channel.nio.AbstractNioChannel
AbstractNioChannel.AbstractNioUnsafe, AbstractNioChannel.NioUnsafe
-
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 Modifier and Type Field Description protected static InternalLogger
logger
Deprecated.-
Fields inherited from class io.netty.channel.nio.AbstractNioChannel
readInterestOp, readOps
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NioUdtAcceptorChannel(com.barchart.udt.nio.ServerSocketChannelUDT channelUDT)
Deprecated.protected
NioUdtAcceptorChannel(com.barchart.udt.TypeUDT type)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UdtServerChannelConfig
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 boolean
doConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)
Deprecated.Connect to the remote peerprotected void
doDisconnect()
Deprecated.Disconnect thisChannel
from its remote peerprotected void
doFinishConnect()
Deprecated.Finish the connectprotected int
doReadMessages(java.util.List<java.lang.Object> buf)
Deprecated.Read messages into the given array and return the amount which was read.protected boolean
doWriteMessage(java.lang.Object msg, ChannelOutboundBuffer in)
Deprecated.Write a message to the underlyingChannel
.protected java.lang.Object
filterOutboundMessage(java.lang.Object msg)
Deprecated.Invoked when a new message is added to aChannelOutboundBuffer
of thisAbstractChannel
, so that theChannel
implementation converts the message to another.boolean
isActive()
Deprecated.Returntrue
if theChannel
is active and so connected.protected com.barchart.udt.nio.ServerSocketChannelUDT
javaChannel()
Deprecated.java.net.InetSocketAddress
localAddress()
Deprecated.Returns the local address where this channel is bound to.protected java.net.SocketAddress
localAddress0()
Deprecated.Returns theSocketAddress
which is bound locally.ChannelMetadata
metadata()
Deprecated.protected abstract UdtChannel
newConnectorChannel(com.barchart.udt.nio.SocketChannelUDT channelUDT)
Deprecated.java.net.InetSocketAddress
remoteAddress()
Deprecated.Returns the remote address where this channel is connected to.protected java.net.SocketAddress
remoteAddress0()
Deprecated.Return theSocketAddress
which theChannel
is connected to.-
Methods inherited from class io.netty.channel.nio.AbstractNioMessageChannel
closeOnReadError, continueOnWriteError, continueReading, doBeginRead, doWrite, newUnsafe
-
Methods inherited from class io.netty.channel.nio.AbstractNioChannel
addAndSubmit, clearReadPending, doDeregister, doRegister, isCompatible, isOpen, isReadPending, newDirectBuffer, newDirectBuffer, registration, removeAndSubmit, selectionKey, setReadPending, unsafe
-
Methods inherited from class io.netty.channel.AbstractChannel
closeFuture, compareTo, doRegister, doShutdownOutput, equals, eventLoop, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, maxMessagesPerWrite, newChannelPipeline, newId, parent, pipeline, toString, 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, closeFuture, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, getOption, id, isOpen, isRegistered, isWritable, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, setOption, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlush
-
-
-
-
Field Detail
-
logger
protected static final InternalLogger logger
Deprecated.
-
-
Method Detail
-
config
public UdtServerChannelConfig config()
Deprecated.Description copied from interface:Channel
Returns the configuration of this channel.- Specified by:
config
in interfaceChannel
- Specified by:
config
in interfaceUdtChannel
-
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
-
doClose
protected void doClose() throws java.lang.Exception
Deprecated.Description copied from class:AbstractChannel
Close theChannel
- Overrides:
doClose
in classAbstractNioChannel
- Throws:
java.lang.Exception
-
doConnect
protected boolean doConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress) throws java.lang.Exception
Deprecated.Description copied from class:AbstractNioChannel
Connect to the remote peer- Specified by:
doConnect
in classAbstractNioChannel
- 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
-
doFinishConnect
protected void doFinishConnect() throws java.lang.Exception
Deprecated.Description copied from class:AbstractNioChannel
Finish the connect- Specified by:
doFinishConnect
in classAbstractNioChannel
- Throws:
java.lang.Exception
-
doWriteMessage
protected boolean doWriteMessage(java.lang.Object msg, ChannelOutboundBuffer in) throws java.lang.Exception
Deprecated.Description copied from class:AbstractNioMessageChannel
Write a message to the underlyingChannel
.- Specified by:
doWriteMessage
in classAbstractNioMessageChannel
- Returns:
true
if and only if the message has been written- Throws:
java.lang.Exception
-
filterOutboundMessage
protected final java.lang.Object filterOutboundMessage(java.lang.Object msg) throws java.lang.Exception
Deprecated.Description copied from class:AbstractChannel
Invoked when a new message is added to aChannelOutboundBuffer
of thisAbstractChannel
, so that theChannel
implementation converts the message to another. (e.g. heap buffer -> direct buffer)- Overrides:
filterOutboundMessage
in classAbstractChannel
- Throws:
java.lang.Exception
-
isActive
public boolean isActive()
Deprecated.Description copied from interface:Channel
Returntrue
if theChannel
is active and so connected.
-
javaChannel
protected com.barchart.udt.nio.ServerSocketChannelUDT javaChannel()
Deprecated.- Overrides:
javaChannel
in classAbstractNioChannel
-
localAddress0
protected java.net.SocketAddress localAddress0()
Deprecated.Description copied from class:AbstractChannel
Returns theSocketAddress
which is bound locally.- Specified by:
localAddress0
in classAbstractChannel
-
localAddress
public java.net.InetSocketAddress 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
- Specified by:
localAddress
in interfaceUdtChannel
- Overrides:
localAddress
in classAbstractChannel
- Returns:
- the local address of this channel.
null
if this channel is not bound.
-
remoteAddress
public java.net.InetSocketAddress 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
- Specified by:
remoteAddress
in interfaceUdtChannel
- 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
.
-
remoteAddress0
protected java.net.SocketAddress remoteAddress0()
Deprecated.Description copied from class:AbstractChannel
Return theSocketAddress
which theChannel
is connected to.- Specified by:
remoteAddress0
in classAbstractChannel
-
metadata
public ChannelMetadata metadata()
Deprecated.Description copied from interface:Channel
-
doReadMessages
protected int doReadMessages(java.util.List<java.lang.Object> buf) throws java.lang.Exception
Deprecated.Description copied from class:AbstractNioMessageChannel
Read messages into the given array and return the amount which was read.- Specified by:
doReadMessages
in classAbstractNioMessageChannel
- Throws:
java.lang.Exception
-
newConnectorChannel
protected abstract UdtChannel newConnectorChannel(com.barchart.udt.nio.SocketChannelUDT channelUDT)
Deprecated.
-
-