All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xbib.helianthus.internal.ReadSuppressingHandler Maven / Gradle / Ivy

package org.xbib.helianthus.internal;

import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;

@Sharable
public final class ReadSuppressingHandler extends ChannelOutboundHandlerAdapter {

    public static final ReadSuppressingHandler INSTANCE = new ReadSuppressingHandler();

    private ReadSuppressingHandler() {
    }

    @Override
    public void read(ChannelHandlerContext ctx) throws Exception {
        if (ctx.channel().config().isAutoRead()) {
            super.read(ctx);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy