public class RequestHandlerUDP<K extends FutureResponse>
extends org.jboss.netty.channel.SimpleChannelHandler
RequestHandlerTCP
, which is used for
TCP.Constructor and Description |
---|
RequestHandlerUDP(K futureResponse,
PeerBean peerBean,
ConnectionBean connectionBean,
Message message) |
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
K |
fireAndForgetUDP(ChannelCreator channelCreator) |
K |
getFutureResponse() |
protected PeerMap |
getPeerMap() |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
K |
sendBroadcastUDP(ChannelCreator channelCreator) |
K |
sendUDP(ChannelCreator channelCreator) |
bindRequested, channelBound, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested
public RequestHandlerUDP(K futureResponse, PeerBean peerBean, ConnectionBean connectionBean, Message message)
objectHolder
- the bean representing the node this handler belongs topublic K getFutureResponse()
public K sendUDP(ChannelCreator channelCreator)
public K sendBroadcastUDP(ChannelCreator channelCreator)
public K fireAndForgetUDP(ChannelCreator channelCreator)
protected PeerMap getPeerMap()
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e)
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelHandler
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelHandler
Exception
Copyright © 2013. All Rights Reserved.