public abstract class EmbeddedChannelHandlerContext extends Object implements io.netty.channel.ChannelHandlerContext
| Modifier | Constructor and Description |
|---|---|
protected |
EmbeddedChannelHandlerContext(io.netty.buffer.ByteBufAllocator alloc,
io.netty.channel.ChannelHandler handler,
io.netty.channel.embedded.EmbeddedChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBufAllocator |
alloc() |
<T> io.netty.util.Attribute<T> |
attr(io.netty.util.AttributeKey<T> key) |
io.netty.channel.ChannelFuture |
bind(SocketAddress localAddress) |
io.netty.channel.ChannelFuture |
bind(SocketAddress localAddress,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.Channel |
channel() |
io.netty.channel.ChannelFuture |
close() |
io.netty.channel.ChannelFuture |
close(io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
connect(SocketAddress remoteAddress) |
io.netty.channel.ChannelFuture |
connect(SocketAddress remoteAddress,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
connect(SocketAddress remoteAddress,
SocketAddress localAddress) |
io.netty.channel.ChannelFuture |
connect(SocketAddress remoteAddress,
SocketAddress localAddress,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
deregister() |
io.netty.channel.ChannelFuture |
deregister(io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
disconnect() |
io.netty.channel.ChannelFuture |
disconnect(io.netty.channel.ChannelPromise promise) |
io.netty.util.concurrent.EventExecutor |
executor() |
io.netty.channel.ChannelHandlerContext |
fireChannelActive() |
io.netty.channel.ChannelHandlerContext |
fireChannelInactive() |
io.netty.channel.ChannelHandlerContext |
fireChannelRead(Object msg) |
io.netty.channel.ChannelHandlerContext |
fireChannelReadComplete() |
io.netty.channel.ChannelHandlerContext |
fireChannelRegistered() |
io.netty.channel.ChannelHandlerContext |
fireChannelUnregistered() |
io.netty.channel.ChannelHandlerContext |
fireChannelWritabilityChanged() |
io.netty.channel.ChannelHandlerContext |
fireExceptionCaught(Throwable cause) |
io.netty.channel.ChannelHandlerContext |
fireUserEventTriggered(Object event) |
io.netty.channel.ChannelHandlerContext |
flush() |
protected abstract void |
handleException(Throwable t) |
io.netty.channel.ChannelHandler |
handler() |
<T> boolean |
hasAttr(io.netty.util.AttributeKey<T> key) |
boolean |
isRemoved() |
String |
name() |
io.netty.channel.ChannelFuture |
newFailedFuture(Throwable cause) |
io.netty.channel.ChannelProgressivePromise |
newProgressivePromise() |
io.netty.channel.ChannelPromise |
newPromise() |
io.netty.channel.ChannelFuture |
newSucceededFuture() |
io.netty.channel.ChannelPipeline |
pipeline() |
io.netty.channel.ChannelHandlerContext |
read() |
io.netty.channel.ChannelPromise |
voidPromise() |
io.netty.channel.ChannelFuture |
write(Object msg) |
io.netty.channel.ChannelFuture |
write(Object msg,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writeAndFlush(Object msg) |
io.netty.channel.ChannelFuture |
writeAndFlush(Object msg,
io.netty.channel.ChannelPromise promise) |
protected EmbeddedChannelHandlerContext(io.netty.buffer.ByteBufAllocator alloc,
io.netty.channel.ChannelHandler handler,
io.netty.channel.embedded.EmbeddedChannel channel)
protected abstract void handleException(Throwable t)
public final <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> key)
attr in interface io.netty.channel.ChannelHandlerContextattr in interface io.netty.util.AttributeMappublic final <T> boolean hasAttr(io.netty.util.AttributeKey<T> key)
hasAttr in interface io.netty.channel.ChannelHandlerContexthasAttr in interface io.netty.util.AttributeMappublic final io.netty.channel.Channel channel()
channel in interface io.netty.channel.ChannelHandlerContextpublic final io.netty.util.concurrent.EventExecutor executor()
executor in interface io.netty.channel.ChannelHandlerContextpublic final String name()
name in interface io.netty.channel.ChannelHandlerContextpublic final io.netty.channel.ChannelHandler handler()
handler in interface io.netty.channel.ChannelHandlerContextpublic final boolean isRemoved()
isRemoved in interface io.netty.channel.ChannelHandlerContextpublic final io.netty.channel.ChannelHandlerContext fireChannelRegistered()
fireChannelRegistered in interface io.netty.channel.ChannelHandlerContextfireChannelRegistered in interface io.netty.channel.ChannelInboundInvokerpublic final io.netty.channel.ChannelHandlerContext fireChannelUnregistered()
fireChannelUnregistered in interface io.netty.channel.ChannelHandlerContextfireChannelUnregistered in interface io.netty.channel.ChannelInboundInvokerpublic final io.netty.channel.ChannelHandlerContext fireChannelActive()
fireChannelActive in interface io.netty.channel.ChannelHandlerContextfireChannelActive in interface io.netty.channel.ChannelInboundInvokerpublic final io.netty.channel.ChannelHandlerContext fireChannelInactive()
fireChannelInactive in interface io.netty.channel.ChannelHandlerContextfireChannelInactive in interface io.netty.channel.ChannelInboundInvokerpublic final io.netty.channel.ChannelHandlerContext fireExceptionCaught(Throwable cause)
fireExceptionCaught in interface io.netty.channel.ChannelHandlerContextfireExceptionCaught in interface io.netty.channel.ChannelInboundInvokerpublic final io.netty.channel.ChannelHandlerContext fireUserEventTriggered(Object event)
fireUserEventTriggered in interface io.netty.channel.ChannelHandlerContextfireUserEventTriggered in interface io.netty.channel.ChannelInboundInvokerpublic final io.netty.channel.ChannelHandlerContext fireChannelRead(Object msg)
fireChannelRead in interface io.netty.channel.ChannelHandlerContextfireChannelRead in interface io.netty.channel.ChannelInboundInvokerpublic final io.netty.channel.ChannelHandlerContext fireChannelReadComplete()
fireChannelReadComplete in interface io.netty.channel.ChannelHandlerContextfireChannelReadComplete in interface io.netty.channel.ChannelInboundInvokerpublic final io.netty.channel.ChannelHandlerContext fireChannelWritabilityChanged()
fireChannelWritabilityChanged in interface io.netty.channel.ChannelHandlerContextfireChannelWritabilityChanged in interface io.netty.channel.ChannelInboundInvokerpublic final io.netty.channel.ChannelFuture bind(SocketAddress localAddress)
bind in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress)
connect in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress)
connect in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture disconnect()
disconnect in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture close()
close in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture deregister()
deregister in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture bind(SocketAddress localAddress, io.netty.channel.ChannelPromise promise)
bind in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress, io.netty.channel.ChannelPromise promise)
connect in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress, io.netty.channel.ChannelPromise promise)
connect in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture disconnect(io.netty.channel.ChannelPromise promise)
disconnect in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise promise)
close in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise promise)
deregister in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelHandlerContext read()
read in interface io.netty.channel.ChannelHandlerContextread in interface io.netty.channel.ChannelOutboundInvokerpublic io.netty.channel.ChannelFuture write(Object msg)
write in interface io.netty.channel.ChannelOutboundInvokerpublic io.netty.channel.ChannelFuture write(Object msg, io.netty.channel.ChannelPromise promise)
write in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelHandlerContext flush()
flush in interface io.netty.channel.ChannelHandlerContextflush in interface io.netty.channel.ChannelOutboundInvokerpublic io.netty.channel.ChannelFuture writeAndFlush(Object msg, io.netty.channel.ChannelPromise promise)
writeAndFlush in interface io.netty.channel.ChannelOutboundInvokerpublic io.netty.channel.ChannelFuture writeAndFlush(Object msg)
writeAndFlush in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelPipeline pipeline()
pipeline in interface io.netty.channel.ChannelHandlerContextpublic final io.netty.buffer.ByteBufAllocator alloc()
alloc in interface io.netty.channel.ChannelHandlerContextpublic final io.netty.channel.ChannelPromise newPromise()
newPromise in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelProgressivePromise newProgressivePromise()
newProgressivePromise in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture newSucceededFuture()
newSucceededFuture in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelFuture newFailedFuture(Throwable cause)
newFailedFuture in interface io.netty.channel.ChannelOutboundInvokerpublic final io.netty.channel.ChannelPromise voidPromise()
voidPromise in interface io.netty.channel.ChannelOutboundInvokerCopyright © 2008–2026 The Netty Project. All rights reserved.