Play! in Osaka#1 Netty
SEDA(Staged Event Driven Archetechture)
event handler
Handler ChannelEvent
ChannelPipeline Handler
COPYRIGHT 2011 PLUGRAM, INC.
Play! in Osaka#1 Netty
ChannelHandler
LifeCycleAwareChannel ChannelUpstream ChannelDownstream
Handler Handler Handler
COPYRIGHT 2011 PLUGRAM, INC.
Play! in Osaka#1 Netty
public interface ChannelUpstreamHandler extends ChannelHandler {
/**
* Handles the specified upstream event.
*
* @param ctx the context object for this handler
* @param e the upstream event to process or intercept
*/
void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
throws Exception;
}
COPYRIGHT 2011 PLUGRAM, INC.
Play! in Osaka#1 Netty
public interface ChannelDownstreamHandler extends ChannelHandler {
/**
* Handles the specified downstream event.
*
* @param ctx the context object for this handler
* @param e the downstream event to process or intercept
*/
void handleDownstream(ChannelHandlerContext ctx, ChannelEvent e)
throws Exception;
}
COPYRIGHT 2011 PLUGRAM, INC.
Play! in Osaka#1 Netty
SimpleChannel(Up|Down)StreamHandler
COPYRIGHT 2011 PLUGRAM, INC.