io.netty.channel.DefaultChannelConfig Java Examples
The following examples show how to use
io.netty.channel.DefaultChannelConfig.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UdpServerChannel.java From UdpServerSocketChannel with GNU Lesser General Public License v3.0 | 4 votes |
@Override public DefaultChannelConfig config() { return config; }
Example #2
Source File: EmbeddedChannel.java From netty-4.1.22 with Apache License 2.0 | 3 votes |
/** * Create a new instance with the channel ID set to the given ID and the pipeline * initialized with the specified handlers.创建一个新实例,将通道ID设置为给定的ID,并使用指定的处理程序初始化管道。 * * @param channelId the {@link ChannelId} that will be used to identify this channel * @param register {@code true} if this {@link Channel} is registered to the {@link EventLoop} in the * constructor. If {@code false} the user will need to call {@link #register()}. * @param hasDisconnect {@code false} if this {@link Channel} will delegate {@link #disconnect()} * to {@link #close()}, {@link false} otherwise. * @param handlers the {@link ChannelHandler}s which will be add in the {@link ChannelPipeline} */ public EmbeddedChannel(ChannelId channelId, boolean register, boolean hasDisconnect, final ChannelHandler... handlers) { super(null, channelId); metadata = metadata(hasDisconnect); config = new DefaultChannelConfig(this); setup(register, handlers); }