Package io.netty.channel.udt.nio
Class NioUdtByteConnectorChannel
- java.lang.Object
-
- io.netty.util.DefaultAttributeMap
-
- io.netty.channel.AbstractChannel
-
- io.netty.channel.nio.AbstractNioChannel
-
- io.netty.channel.nio.AbstractNioByteChannel
-
- io.netty.channel.udt.nio.NioUdtByteConnectorChannel
-
- All Implemented Interfaces:
Channel,ChannelOutboundInvoker,UdtChannel,AttributeMap,java.lang.Comparable<Channel>
- Direct Known Subclasses:
NioUdtByteRendezvousChannel
@Deprecated public class NioUdtByteConnectorChannel extends AbstractNioByteChannel implements UdtChannel
Deprecated.The UDT transport is no longer maintained and will be removed.Byte Channel Connector for UDT Streams.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty.channel.nio.AbstractNioByteChannel
AbstractNioByteChannel.NioByteUnsafe
-
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 inherited from class io.netty.channel.nio.AbstractNioChannel
readInterestOp, readOps
-
-
Constructor Summary
Constructors Constructor Description NioUdtByteConnectorChannel()Deprecated.NioUdtByteConnectorChannel(com.barchart.udt.nio.SocketChannelUDT channelUDT)Deprecated.NioUdtByteConnectorChannel(com.barchart.udt.TypeUDT type)Deprecated.NioUdtByteConnectorChannel(Channel parent, com.barchart.udt.nio.SocketChannelUDT channelUDT)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UdtChannelConfigconfig()Deprecated.Returns theUdtChannelConfigof the channel.protected voiddoBind(java.net.SocketAddress localAddress)Deprecated.Bind theChannelto theSocketAddressprotected voiddoClose()Deprecated.Close theChannelprotected booleandoConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)Deprecated.Connect to the remote peerprotected voiddoDisconnect()Deprecated.Disconnect thisChannelfrom its remote peerprotected voiddoFinishConnect()Deprecated.Finish the connectprotected intdoReadBytes(ByteBuf byteBuf)Deprecated.Read bytes into the givenByteBufand return the amount.protected intdoWriteBytes(ByteBuf byteBuf)Deprecated.Write bytes form the givenByteBufto the underlyingChannel.protected longdoWriteFileRegion(FileRegion region)Deprecated.Write aFileRegionbooleanisActive()Deprecated.Returntrueif theChannelis active and so connected.protected com.barchart.udt.nio.SocketChannelUDTjavaChannel()Deprecated.java.net.InetSocketAddresslocalAddress()Deprecated.Returns the local address where this channel is bound to.protected java.net.SocketAddresslocalAddress0()Deprecated.Returns theSocketAddresswhich is bound locally.java.net.InetSocketAddressremoteAddress()Deprecated.Returns the remote address where this channel is connected to.protected java.net.SocketAddressremoteAddress0()Deprecated.Return theSocketAddresswhich theChannelis connected to.protected ChannelFutureshutdownInput()Deprecated.Shutdown the input side of the channel.-
Methods inherited from class io.netty.channel.nio.AbstractNioByteChannel
clearOpWrite, doWrite, doWrite0, filterOutboundMessage, incompleteWrite, isInputShutdown0, metadata, newUnsafe, setOpWrite
-
Methods inherited from class io.netty.channel.nio.AbstractNioChannel
addAndSubmit, clearReadPending, doBeginRead, 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, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, setOption, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlush
-
-
-
-
Constructor Detail
-
NioUdtByteConnectorChannel
public NioUdtByteConnectorChannel()
Deprecated.
-
NioUdtByteConnectorChannel
public NioUdtByteConnectorChannel(Channel parent, com.barchart.udt.nio.SocketChannelUDT channelUDT)
Deprecated.
-
NioUdtByteConnectorChannel
public NioUdtByteConnectorChannel(com.barchart.udt.nio.SocketChannelUDT channelUDT)
Deprecated.
-
NioUdtByteConnectorChannel
public NioUdtByteConnectorChannel(com.barchart.udt.TypeUDT type)
Deprecated.
-
-
Method Detail
-
config
public UdtChannelConfig config()
Deprecated.Description copied from interface:UdtChannelReturns theUdtChannelConfigof the channel.- Specified by:
configin interfaceChannel- Specified by:
configin interfaceUdtChannel
-
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
-
doClose
protected void doClose() throws java.lang.ExceptionDeprecated.Description copied from class:AbstractChannelClose theChannel- Overrides:
doClosein classAbstractNioChannel- Throws:
java.lang.Exception
-
doConnect
protected boolean doConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress) throws java.lang.ExceptionDeprecated.Description copied from class:AbstractNioChannelConnect to the remote peer- Specified by:
doConnectin classAbstractNioChannel- 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
-
doFinishConnect
protected void doFinishConnect() throws java.lang.ExceptionDeprecated.Description copied from class:AbstractNioChannelFinish the connect- Specified by:
doFinishConnectin classAbstractNioChannel- Throws:
java.lang.Exception
-
doReadBytes
protected int doReadBytes(ByteBuf byteBuf) throws java.lang.Exception
Deprecated.Description copied from class:AbstractNioByteChannelRead bytes into the givenByteBufand return the amount.- Specified by:
doReadBytesin classAbstractNioByteChannel- Throws:
java.lang.Exception
-
doWriteBytes
protected int doWriteBytes(ByteBuf byteBuf) throws java.lang.Exception
Deprecated.Description copied from class:AbstractNioByteChannelWrite bytes form the givenByteBufto the underlyingChannel.- Specified by:
doWriteBytesin classAbstractNioByteChannel- Parameters:
byteBuf- theByteBuffrom which the bytes should be written- Returns:
- amount the amount of written bytes
- Throws:
java.lang.Exception
-
shutdownInput
protected ChannelFuture shutdownInput()
Deprecated.Description copied from class:AbstractNioByteChannelShutdown the input side of the channel.- Specified by:
shutdownInputin classAbstractNioByteChannel
-
doWriteFileRegion
protected long doWriteFileRegion(FileRegion region) throws java.lang.Exception
Deprecated.Description copied from class:AbstractNioByteChannelWrite aFileRegion- Specified by:
doWriteFileRegionin classAbstractNioByteChannel- Parameters:
region- theFileRegionfrom which the bytes should be written- Returns:
- amount the amount of written bytes
- Throws:
java.lang.Exception
-
isActive
public boolean isActive()
Deprecated.Description copied from interface:ChannelReturntrueif theChannelis active and so connected.
-
javaChannel
protected com.barchart.udt.nio.SocketChannelUDT javaChannel()
Deprecated.- Overrides:
javaChannelin classAbstractNioChannel
-
localAddress0
protected java.net.SocketAddress localAddress0()
Deprecated.Description copied from class:AbstractChannelReturns theSocketAddresswhich is bound locally.- Specified by:
localAddress0in classAbstractChannel
-
remoteAddress0
protected java.net.SocketAddress remoteAddress0()
Deprecated.Description copied from class:AbstractChannelReturn theSocketAddresswhich theChannelis connected to.- Specified by:
remoteAddress0in classAbstractChannel
-
localAddress
public java.net.InetSocketAddress 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- Specified by:
localAddressin interfaceUdtChannel- Overrides:
localAddressin classAbstractChannel- Returns:
- the local address of this channel.
nullif this channel is not bound.
-
remoteAddress
public java.net.InetSocketAddress 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- Specified by:
remoteAddressin interfaceUdtChannel- 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.
-
-