public static interface Channel.Unsafe
| Modifier and Type | Method and Description |
|---|---|
void |
bind(SocketAddress localAddress,
ChannelFuture future)
|
void |
close(ChannelFuture future)
Close the
Channel of the ChannelFuture and notify the ChannelFuture once the
operation was complete. |
void |
closeForcibly()
Closes the
Channel immediately without firing any events. |
void |
connect(SocketAddress remoteAddress,
SocketAddress localAddress,
ChannelFuture future)
|
void |
deregister(ChannelFuture future)
Deregister the
Channel of the ChannelFuture from EventLoop and notify the
ChannelFuture once the operation was complete. |
ChannelHandlerContext |
directOutboundContext()
Return the
ChannelHandlerContext which is directly connected to the outbound of the
underlying transport. |
void |
disconnect(ChannelFuture future)
Disconnect the
Channel of the ChannelFuture and notify the ChannelFuture once the
operation was complete. |
void |
flush(ChannelFuture future)
Flush out all data that was buffered in the buffer of the
directOutboundContext() and was not
flushed out yet. |
void |
flushNow()
Flush out all data now.
|
SocketAddress |
localAddress()
Return the
SocketAddress to which is bound local or
null if none. |
void |
register(EventLoop eventLoop,
ChannelFuture future)
Register the
Channel of the ChannelFuture with the EventLoop and notify
the ChannelFuture once the registration was complete. |
SocketAddress |
remoteAddress()
Return the
SocketAddress to which is bound remote or
null if none is bound yet. |
void |
resumeRead()
Resume reads from the underlying transport.
|
void |
suspendRead()
Suspend reads from the underlying transport, which basicly has the effect of no new data that will
get dispatched.
|
ChannelFuture |
voidFuture()
Return a
VoidChannelFuture. |
ChannelHandlerContext directOutboundContext()
ChannelHandlerContext which is directly connected to the outbound of the
underlying transport.ChannelFuture voidFuture()
VoidChannelFuture. This method always return the same instance.SocketAddress localAddress()
SocketAddress to which is bound local or
null if none.SocketAddress remoteAddress()
SocketAddress to which is bound remote or
null if none is bound yet.void register(EventLoop eventLoop, ChannelFuture future)
Channel of the ChannelFuture with the EventLoop and notify
the ChannelFuture once the registration was complete.void bind(SocketAddress localAddress, ChannelFuture future)
void connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelFuture future)
Channel of the given ChannelFuture with the given remote SocketAddress.
If a specific local SocketAddress should be used it need to be given as argument. Otherwise just
pass null to it.
The ChannelFuture will get notified once the connect operation was complete.void disconnect(ChannelFuture future)
Channel of the ChannelFuture and notify the ChannelFuture once the
operation was complete.void close(ChannelFuture future)
Channel of the ChannelFuture and notify the ChannelFuture once the
operation was complete.void closeForcibly()
Channel immediately without firing any events. Probably only useful
when registration attempt failed.void deregister(ChannelFuture future)
Channel of the ChannelFuture from EventLoop and notify the
ChannelFuture once the operation was complete.void flush(ChannelFuture future)
directOutboundContext() and was not
flushed out yet. After that is done the ChannelFuture will get notifiedvoid flushNow()
void suspendRead()
void resumeRead()
suspendRead() was not called before, this
has no effect.Copyright © 2008-2012 The Netty Project. All Rights Reserved.