Example usage for Java io.netty.channel Channel fields, constructors, methods, implement or subclass
The text is from its open source code.
ByteBufAllocator | alloc() Return the assigned ByteBufAllocator which will be used to allocate ByteBuf s. |
Attribute | attr(AttributeKey Get the Attribute for the given AttributeKey . |
ChannelFuture | closeFuture() Returns the ChannelFuture which will be notified when this channel is closed. |
ChannelConfig | config() Returns the configuration of this channel. |
EventLoop | eventLoop() Return the EventLoop this Channel was registered to. |
Channel | flush() |
boolean | hasAttr(AttributeKey Returns true if and only if the given Attribute exists in this AttributeMap . |
ChannelId | id() Returns the globally unique identifier of this Channel . |
boolean | isActive() Return true if the Channel is active and so connected. |
boolean | isOpen() Returns true if the Channel is open and may get active later |
boolean | isRegistered() Returns true if the Channel is registered with an EventLoop . |
boolean | isWritable() Returns true if and only if the I/O thread will perform the requested write operation immediately. |
SocketAddress | localAddress() Returns the local address where this channel is bound to. |
ChannelMetadata | metadata() Return the ChannelMetadata of the Channel which describe the nature of the Channel . |
Channel | parent() Returns the parent of this channel. |
ChannelPipeline | pipeline() Return the assigned ChannelPipeline . |
Channel | read() |
SocketAddress | remoteAddress() Returns the remote address where this channel is connected to. |
Unsafe | unsafe() Returns an internal-use-only object that provides unsafe operations. |