protected abstract class AbstractChannel.AbstractUnsafe extends Object implements Channel.Unsafe
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractChannel.AbstractUnsafe() |
| 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. |
protected void |
closeIfClosed() |
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. |
protected boolean |
ensureOpen(ChannelFuture future) |
void |
flush(ChannelFuture future)
Flush out all data that was buffered in the buffer of the
Channel.Unsafe.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. |
ChannelFuture |
voidFuture()
Return a
VoidChannelFuture. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, resumeRead, suspendReadpublic final ChannelHandlerContext directOutboundContext()
Channel.UnsafeChannelHandlerContext which is directly connected to the outbound of the
underlying transport.directOutboundContext in interface Channel.Unsafepublic final ChannelFuture voidFuture()
Channel.UnsafeVoidChannelFuture. This method always return the same instance.voidFuture in interface Channel.Unsafepublic final SocketAddress localAddress()
Channel.UnsafeSocketAddress to which is bound local or
null if none.localAddress in interface Channel.Unsafepublic final SocketAddress remoteAddress()
Channel.UnsafeSocketAddress to which is bound remote or
null if none is bound yet.remoteAddress in interface Channel.Unsafepublic final void register(EventLoop eventLoop, ChannelFuture future)
Channel.UnsafeChannel of the ChannelFuture with the EventLoop and notify
the ChannelFuture once the registration was complete.register in interface Channel.Unsafepublic final void bind(SocketAddress localAddress, ChannelFuture future)
Channel.Unsafebind in interface Channel.Unsafepublic final void disconnect(ChannelFuture future)
Channel.UnsafeChannel of the ChannelFuture and notify the ChannelFuture once the
operation was complete.disconnect in interface Channel.Unsafepublic final void close(ChannelFuture future)
Channel.UnsafeChannel of the ChannelFuture and notify the ChannelFuture once the
operation was complete.close in interface Channel.Unsafepublic final void deregister(ChannelFuture future)
Channel.UnsafeChannel of the ChannelFuture from EventLoop and notify the
ChannelFuture once the operation was complete.deregister in interface Channel.Unsafepublic void flush(ChannelFuture future)
Channel.UnsafeChannel.Unsafe.directOutboundContext() and was not
flushed out yet. After that is done the ChannelFuture will get notifiedflush in interface Channel.Unsafepublic final void flushNow()
Channel.UnsafeflushNow in interface Channel.Unsafeprotected final boolean ensureOpen(ChannelFuture future)
protected final void closeIfClosed()
Copyright © 2008-2012 The Netty Project. All Rights Reserved.