@Deprecated public class NioUdtByteConnectorChannel extends AbstractNioByteChannel implements UdtChannel
AbstractNioByteChannel.NioByteUnsafe
AbstractNioChannel.AbstractNioUnsafe, AbstractNioChannel.NioUnsafe
AbstractChannel.AbstractUnsafe
Channel.Unsafe
readInterestOp
Constructor and Description |
---|
NioUdtByteConnectorChannel()
Deprecated.
|
NioUdtByteConnectorChannel(Channel parent,
com.barchart.udt.nio.SocketChannelUDT channelUDT)
Deprecated.
|
NioUdtByteConnectorChannel(com.barchart.udt.nio.SocketChannelUDT channelUDT)
Deprecated.
|
NioUdtByteConnectorChannel(com.barchart.udt.TypeUDT type)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
UdtChannelConfig |
config()
Deprecated.
Returns the
UdtChannelConfig of the channel. |
protected void |
doBind(java.net.SocketAddress localAddress)
Deprecated.
Bind the
Channel to the SocketAddress |
protected void |
doClose()
Deprecated.
Close the
Channel |
protected boolean |
doConnect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
Deprecated.
Connect to the remote peer
|
protected void |
doDisconnect()
Deprecated.
Disconnect this
Channel from its remote peer |
protected void |
doFinishConnect()
Deprecated.
Finish the connect
|
protected int |
doReadBytes(ByteBuf byteBuf)
Deprecated.
Read bytes into the given
ByteBuf and return the amount. |
protected int |
doWriteBytes(ByteBuf byteBuf)
Deprecated.
Write bytes form the given
ByteBuf to the underlying Channel . |
protected long |
doWriteFileRegion(FileRegion region)
Deprecated.
Write a
FileRegion |
boolean |
isActive()
Deprecated.
Return
true if the Channel is active and so connected. |
protected com.barchart.udt.nio.SocketChannelUDT |
javaChannel()
Deprecated.
|
java.net.InetSocketAddress |
localAddress()
Deprecated.
Returns the local address where this channel is bound to.
|
protected java.net.SocketAddress |
localAddress0()
Deprecated.
Returns the
SocketAddress which is bound locally. |
ChannelMetadata |
metadata()
Deprecated.
|
java.net.InetSocketAddress |
remoteAddress()
Deprecated.
Returns the remote address where this channel is connected to.
|
protected java.net.SocketAddress |
remoteAddress0()
Deprecated.
Return the
SocketAddress which the Channel is connected to. |
clearOpWrite, doWrite, filterOutboundMessage, incompleteWrite, newUnsafe, setOpWrite
doBeginRead, doDeregister, doRegister, eventLoop, isCompatible, isInputShutdown, isOpen, isReadPending, newDirectBuffer, newDirectBuffer, selectionKey, setReadPending, unsafe
alloc, bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doShutdownOutput, equals, flush, hashCode, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, newChannelPipeline, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, voidPromise, write, write, writeAndFlush, writeAndFlush
attr
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
alloc, bind, bind, close, close, closeFuture, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, isOpen, isRegistered, isWritable, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlush
attr
public NioUdtByteConnectorChannel()
public NioUdtByteConnectorChannel(Channel parent, com.barchart.udt.nio.SocketChannelUDT channelUDT)
public NioUdtByteConnectorChannel(com.barchart.udt.nio.SocketChannelUDT channelUDT)
public NioUdtByteConnectorChannel(com.barchart.udt.TypeUDT type)
public UdtChannelConfig config()
UdtChannel
UdtChannelConfig
of the channel.config
in interface Channel
config
in interface UdtChannel
protected void doBind(java.net.SocketAddress localAddress) throws java.lang.Exception
AbstractChannel
Channel
to the SocketAddress
doBind
in class AbstractChannel
java.lang.Exception
protected void doClose() throws java.lang.Exception
AbstractChannel
Channel
doClose
in class AbstractNioChannel
java.lang.Exception
protected boolean doConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress) throws java.lang.Exception
AbstractNioChannel
doConnect
in class AbstractNioChannel
java.lang.Exception
protected void doDisconnect() throws java.lang.Exception
AbstractChannel
Channel
from its remote peerdoDisconnect
in class AbstractChannel
java.lang.Exception
protected void doFinishConnect() throws java.lang.Exception
AbstractNioChannel
doFinishConnect
in class AbstractNioChannel
java.lang.Exception
protected int doReadBytes(ByteBuf byteBuf) throws java.lang.Exception
AbstractNioByteChannel
ByteBuf
and return the amount.doReadBytes
in class AbstractNioByteChannel
java.lang.Exception
protected int doWriteBytes(ByteBuf byteBuf) throws java.lang.Exception
AbstractNioByteChannel
ByteBuf
to the underlying Channel
.doWriteBytes
in class AbstractNioByteChannel
byteBuf
- the ByteBuf
from which the bytes should be writtenjava.lang.Exception
protected long doWriteFileRegion(FileRegion region) throws java.lang.Exception
AbstractNioByteChannel
FileRegion
doWriteFileRegion
in class AbstractNioByteChannel
region
- the FileRegion
from which the bytes should be writtenjava.lang.Exception
public boolean isActive()
Channel
true
if the Channel
is active and so connected.protected com.barchart.udt.nio.SocketChannelUDT javaChannel()
javaChannel
in class AbstractNioChannel
protected java.net.SocketAddress localAddress0()
AbstractChannel
SocketAddress
which is bound locally.localAddress0
in class AbstractChannel
public ChannelMetadata metadata()
Channel
protected java.net.SocketAddress remoteAddress0()
AbstractChannel
SocketAddress
which the Channel
is connected to.remoteAddress0
in class AbstractChannel
public java.net.InetSocketAddress localAddress()
Channel
SocketAddress
is supposed to be down-cast into more concrete
type such as InetSocketAddress
to retrieve the detailed
information.localAddress
in interface Channel
localAddress
in interface UdtChannel
localAddress
in class AbstractChannel
null
if this channel is not bound.public java.net.InetSocketAddress remoteAddress()
Channel
SocketAddress
is supposed to be down-cast into more
concrete type such as InetSocketAddress
to retrieve the detailed
information.remoteAddress
in interface Channel
remoteAddress
in interface UdtChannel
remoteAddress
in class AbstractChannel
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
,
use DefaultAddressedEnvelope.recipient()
to determine
the origination of the received message as this method will
return null
.Copyright © 2008–2018 The Netty Project. All rights reserved.