org.zodiac.sdk.simplenetty.handler.ChannelHandlerContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zodiac-sdk-nio Show documentation
Show all versions of zodiac-sdk-nio Show documentation
Zodiac SDK NIO2(New Non-Blocking IO)
package org.zodiac.sdk.simplenetty.handler;
import java.nio.ByteBuffer;
import org.zodiac.sdk.simplenetty.channel.Channel;
import org.zodiac.sdk.simplenetty.core.EventLoop;
import org.zodiac.sdk.simplenetty.core.EventLoopGroup;
public interface ChannelHandlerContext {
EventLoop eventLoop();
EventLoopGroup eventLoopGroup();
ChannelPipeline pipeline();
Channel channel();
void handlerAdded(ChannelHandler handler) throws Exception;
void handlerRemoved(ChannelHandler handler) throws Exception;
void fireActive() throws Exception;
void fireInactive() throws Exception;
void fireRead(Object var2) throws Exception;
void fireReadComplete() throws Exception;
void fireWrite(Object var2) throws Exception;
void fireWriteComplete() throws Exception;
void fireExceptionCaught(Throwable var2);
void writeAndFlush(ByteBuffer buffer);
}