public class UDPUpstreamHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.channel.socket.DatagramPacket>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private MessageBufferEventDecoder |
messageBufferEventDecoder |
private static String |
UDP_CONNECTING |
private SessionRegistryService<SocketAddress> |
udpSessionRegistry |
| Constructor and Description |
|---|
UDPUpstreamHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.socket.DatagramPacket packet) |
MessageBufferEventDecoder |
getMessageBufferEventDecoder() |
Event |
getUDPConnectEvent(Event event,
SocketAddress remoteAddress,
io.netty.channel.socket.DatagramChannel udpChannel) |
SessionRegistryService<SocketAddress> |
getUdpSessionRegistry() |
void |
setMessageBufferEventDecoder(MessageBufferEventDecoder messageBufferEventDecoder) |
void |
setUdpSessionRegistry(SessionRegistryService<SocketAddress> udpSessionRegistry) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredexceptionCaught, handlerAdded, handlerRemovedprivate static final org.slf4j.Logger LOG
private static final String UDP_CONNECTING
private SessionRegistryService<SocketAddress> udpSessionRegistry
private MessageBufferEventDecoder messageBufferEventDecoder
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.socket.DatagramPacket packet)
throws Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.channel.socket.DatagramPacket>Exceptionpublic Event getUDPConnectEvent(Event event, SocketAddress remoteAddress, io.netty.channel.socket.DatagramChannel udpChannel)
public SessionRegistryService<SocketAddress> getUdpSessionRegistry()
public void setUdpSessionRegistry(SessionRegistryService<SocketAddress> udpSessionRegistry)
public MessageBufferEventDecoder getMessageBufferEventDecoder()
public void setMessageBufferEventDecoder(MessageBufferEventDecoder messageBufferEventDecoder)
Copyright © 2013. All Rights Reserved.