Skip to content

Bidirectional handlers

A bidirectional handler (or mixed handler) in Netty is a ChannelHandler that implements both the ChannelInboundHandler and ChannelOutboundHandler interfaces^[600-developer__big-data__netty__netty-ChannelPipeline.md].

This type of handler is capable of intercepting and processing inbound events (such as data reads from the socket) as well as outbound events (such as data writes to the socket).^[600-developer__big-data__netty__netty-ChannelPipeline.md]

In a ChannelPipeline, bidirectional handlers effectively act as a bridge that participates in both the upstream (read) and downstream (write) logic flows.^[600-developer__big-data__netty__netty-ChannelPipeline.md]

Sources

^[600-developer__big-data__netty__netty-ChannelPipeline.md]