Class EmbeddedChannelHandlerContext

    • Constructor Detail

      • EmbeddedChannelHandlerContext

        protected EmbeddedChannelHandlerContext​(io.netty5.buffer.api.BufferAllocator bufferAllocator,
                                                io.netty5.channel.ChannelHandler handler,
                                                io.netty5.channel.embedded.EmbeddedChannel channel)
    • Method Detail

      • handleException

        protected abstract void handleException​(Throwable t)
      • channel

        public final io.netty5.channel.Channel channel()
        Specified by:
        channel in interface io.netty5.channel.ChannelHandlerContext
      • executor

        public final io.netty5.util.concurrent.EventExecutor executor()
        Specified by:
        executor in interface io.netty5.channel.ChannelOutboundInvoker
      • name

        public final String name()
        Specified by:
        name in interface io.netty5.channel.ChannelHandlerContext
      • handler

        public final io.netty5.channel.ChannelHandler handler()
        Specified by:
        handler in interface io.netty5.channel.ChannelHandlerContext
      • isRemoved

        public final boolean isRemoved()
        Specified by:
        isRemoved in interface io.netty5.channel.ChannelHandlerContext
      • fireChannelRegistered

        public final io.netty5.channel.ChannelHandlerContext fireChannelRegistered()
        Specified by:
        fireChannelRegistered in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelRegistered in interface io.netty5.channel.ChannelInboundInvoker
      • fireChannelUnregistered

        public final io.netty5.channel.ChannelHandlerContext fireChannelUnregistered()
        Specified by:
        fireChannelUnregistered in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelUnregistered in interface io.netty5.channel.ChannelInboundInvoker
      • fireChannelActive

        public final io.netty5.channel.ChannelHandlerContext fireChannelActive()
        Specified by:
        fireChannelActive in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelActive in interface io.netty5.channel.ChannelInboundInvoker
      • fireChannelInactive

        public final io.netty5.channel.ChannelHandlerContext fireChannelInactive()
        Specified by:
        fireChannelInactive in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelInactive in interface io.netty5.channel.ChannelInboundInvoker
      • fireChannelShutdown

        public final io.netty5.channel.ChannelHandlerContext fireChannelShutdown​(io.netty5.channel.ChannelShutdownDirection direction)
        Specified by:
        fireChannelShutdown in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelShutdown in interface io.netty5.channel.ChannelInboundInvoker
      • fireChannelExceptionCaught

        public final io.netty5.channel.ChannelHandlerContext fireChannelExceptionCaught​(Throwable cause)
        Specified by:
        fireChannelExceptionCaught in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelExceptionCaught in interface io.netty5.channel.ChannelInboundInvoker
      • fireChannelInboundEvent

        public final io.netty5.channel.ChannelHandlerContext fireChannelInboundEvent​(Object event)
        Specified by:
        fireChannelInboundEvent in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelInboundEvent in interface io.netty5.channel.ChannelInboundInvoker
      • fireChannelRead

        public final io.netty5.channel.ChannelHandlerContext fireChannelRead​(Object msg)
        Specified by:
        fireChannelRead in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelRead in interface io.netty5.channel.ChannelInboundInvoker
      • fireChannelReadComplete

        public final io.netty5.channel.ChannelHandlerContext fireChannelReadComplete()
        Specified by:
        fireChannelReadComplete in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelReadComplete in interface io.netty5.channel.ChannelInboundInvoker
      • fireChannelWritabilityChanged

        public final io.netty5.channel.ChannelHandlerContext fireChannelWritabilityChanged()
        Specified by:
        fireChannelWritabilityChanged in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        fireChannelWritabilityChanged in interface io.netty5.channel.ChannelInboundInvoker
      • register

        public final io.netty5.util.concurrent.Future<Void> register()
        Specified by:
        register in interface io.netty5.channel.ChannelOutboundInvoker
      • deregister

        public final io.netty5.util.concurrent.Future<Void> deregister()
        Specified by:
        deregister in interface io.netty5.channel.ChannelOutboundInvoker
      • bind

        public final io.netty5.util.concurrent.Future<Void> bind​(SocketAddress localAddress)
        Specified by:
        bind in interface io.netty5.channel.ChannelOutboundInvoker
      • connect

        public final io.netty5.util.concurrent.Future<Void> connect​(SocketAddress remoteAddress)
        Specified by:
        connect in interface io.netty5.channel.ChannelOutboundInvoker
      • connect

        public final io.netty5.util.concurrent.Future<Void> connect​(SocketAddress remoteAddress,
                                                                    SocketAddress localAddress)
        Specified by:
        connect in interface io.netty5.channel.ChannelOutboundInvoker
      • disconnect

        public final io.netty5.util.concurrent.Future<Void> disconnect()
        Specified by:
        disconnect in interface io.netty5.channel.ChannelOutboundInvoker
      • close

        public final io.netty5.util.concurrent.Future<Void> close()
        Specified by:
        close in interface io.netty5.channel.ChannelOutboundInvoker
      • shutdown

        public final io.netty5.util.concurrent.Future<Void> shutdown​(io.netty5.channel.ChannelShutdownDirection direction)
        Specified by:
        shutdown in interface io.netty5.channel.ChannelOutboundInvoker
      • read

        public final io.netty5.channel.ChannelHandlerContext read()
        Specified by:
        read in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        read in interface io.netty5.channel.ChannelOutboundInvoker
      • write

        public io.netty5.util.concurrent.Future<Void> write​(Object msg)
        Specified by:
        write in interface io.netty5.channel.ChannelOutboundInvoker
      • flush

        public io.netty5.channel.ChannelHandlerContext flush()
        Specified by:
        flush in interface io.netty5.channel.ChannelHandlerContext
        Specified by:
        flush in interface io.netty5.channel.ChannelOutboundInvoker
      • sendOutboundEvent

        public io.netty5.util.concurrent.Future<Void> sendOutboundEvent​(Object event)
        Specified by:
        sendOutboundEvent in interface io.netty5.channel.ChannelOutboundInvoker
      • writeAndFlush

        public io.netty5.util.concurrent.Future<Void> writeAndFlush​(Object msg)
        Specified by:
        writeAndFlush in interface io.netty5.channel.ChannelOutboundInvoker
      • pipeline

        public final io.netty5.channel.ChannelPipeline pipeline()
        Specified by:
        pipeline in interface io.netty5.channel.ChannelHandlerContext
      • bufferAllocator

        public io.netty5.buffer.api.BufferAllocator bufferAllocator()
        Specified by:
        bufferAllocator in interface io.netty5.channel.ChannelHandlerContext
      • newPromise

        public final io.netty5.util.concurrent.Promise<Void> newPromise()
        Specified by:
        newPromise in interface io.netty5.channel.ChannelOutboundInvoker
        Specified by:
        newPromise in interface io.netty5.util.concurrent.FuturePromiseFactory
      • newSucceededFuture

        public final io.netty5.util.concurrent.Future<Void> newSucceededFuture()
        Specified by:
        newSucceededFuture in interface io.netty5.channel.ChannelOutboundInvoker
        Specified by:
        newSucceededFuture in interface io.netty5.util.concurrent.FuturePromiseFactory
      • newFailedFuture

        public final io.netty5.util.concurrent.Future<Void> newFailedFuture​(Throwable cause)
        Specified by:
        newFailedFuture in interface io.netty5.channel.ChannelOutboundInvoker
        Specified by:
        newFailedFuture in interface io.netty5.util.concurrent.FuturePromiseFactory