public class UDPChannelInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>
| Modifier and Type | Field and Description |
|---|---|
(package private) io.netty.channel.ChannelPipeline |
pipeline
This pipeline will be shared across all the channels.
|
private UDPEventEncoder |
udpEventEncoder |
private UDPUpstreamHandler |
upstream |
| Constructor and Description |
|---|
UDPChannelInitializer() |
UDPChannelInitializer(UDPUpstreamHandler upstream) |
| Modifier and Type | Method and Description |
|---|---|
UDPEventEncoder |
getUdpEventEncoder() |
UDPUpstreamHandler |
getUpstream() |
protected void |
initChannel(io.netty.channel.socket.DatagramChannel ch) |
void |
setUdpEventEncoder(UDPEventEncoder udpEventEncoder) |
void |
setUpstream(UDPUpstreamHandler upstream) |
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredexceptionCaught, handlerAdded, handlerRemovedio.netty.channel.ChannelPipeline pipeline
private UDPEventEncoder udpEventEncoder
private UDPUpstreamHandler upstream
public UDPChannelInitializer()
public UDPChannelInitializer(UDPUpstreamHandler upstream)
protected void initChannel(io.netty.channel.socket.DatagramChannel ch)
throws Exception
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>Exceptionpublic void setUpstream(UDPUpstreamHandler upstream)
public UDPUpstreamHandler getUpstream()
public UDPEventEncoder getUdpEventEncoder()
public void setUdpEventEncoder(UDPEventEncoder udpEventEncoder)
Copyright © 2013. All Rights Reserved.