• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ServerSocketChannelConfig类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中io.netty.channel.socket.ServerSocketChannelConfig的典型用法代码示例。如果您正苦于以下问题:Java ServerSocketChannelConfig类的具体用法?Java ServerSocketChannelConfig怎么用?Java ServerSocketChannelConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ServerSocketChannelConfig类属于io.netty.channel.socket包,在下文中一共展示了ServerSocketChannelConfig类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setReceiveBufferSize

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setReceiveBufferSize(int size) {
	try {
		dchannel.socket().setReceiveBufferSize(size);
	} catch (SocketException ex) {
		throw new ChannelException(ex);
	}
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:10,
代码来源:UdpServerChannelConfig.java

示例2: setReuseAddress

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setReuseAddress(boolean reuseaddr) {
	try {
		dchannel.socket().setReuseAddress(true);
	} catch (SocketException ex) {
		throw new ChannelException(ex);
	}
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:10,
代码来源:UdpServerChannelConfig.java

示例3: config

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig config() {
	return config;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:5,
代码来源:NioUdpServerChannel.java

示例4: setBacklog

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setBacklog(int backlog) {
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:5,
代码来源:UdpServerChannelConfig.java

示例5: setConnectTimeoutMillis

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setConnectTimeoutMillis(int timeout) {
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:5,
代码来源:UdpServerChannelConfig.java

示例6: setPerformancePreferences

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setPerformancePreferences(int arg0, int arg1, int arg2) {
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:5,
代码来源:UdpServerChannelConfig.java

示例7: setAllocator

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setAllocator(ByteBufAllocator alloc) {
	super.setAllocator(alloc);
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:6,
代码来源:UdpServerChannelConfig.java

示例8: setRecvByteBufAllocator

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator alloc) {
	super.setRecvByteBufAllocator(alloc);
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:6,
代码来源:UdpServerChannelConfig.java

示例9: setAutoRead

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setAutoRead(boolean autoread) {
	super.setAutoRead(true);
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:6,
代码来源:UdpServerChannelConfig.java

示例10: setMaxMessagesPerRead

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
@Deprecated
public ServerSocketChannelConfig setMaxMessagesPerRead(int n) {
	super.setMaxMessagesPerRead(n);
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:7,
代码来源:UdpServerChannelConfig.java

示例11: setMessageSizeEstimator

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator est) {
	super.setMessageSizeEstimator(est);
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:6,
代码来源:UdpServerChannelConfig.java

示例12: setWriteSpinCount

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig setWriteSpinCount(int spincount) {
	super.setWriteSpinCount(spincount);
	return this;
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:6,
代码来源:UdpServerChannelConfig.java

示例13: setWriteBufferHighWaterMark

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
public ServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark) {
	return (ServerSocketChannelConfig) super.setWriteBufferHighWaterMark(writeBufferHighWaterMark);
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:4,
代码来源:UdpServerChannelConfig.java

示例14: setWriteBufferLowWaterMark

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
public ServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark) {
	return (ServerSocketChannelConfig) super.setWriteBufferLowWaterMark(writeBufferLowWaterMark);
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:4,
代码来源:UdpServerChannelConfig.java

示例15: setWriteBufferWaterMark

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
public ServerSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) {
	return (ServerSocketChannelConfig) super.setWriteBufferWaterMark(writeBufferWaterMark);
}
 

开发者ID:Shevchik,
项目名称:UdpServerSocketChannel,
代码行数:4,
代码来源:UdpServerChannelConfig.java

示例16: config

点赞 2

import io.netty.channel.socket.ServerSocketChannelConfig; //导入依赖的package包/类
@Override
public ServerSocketChannelConfig config() {
    return config;
}
 

开发者ID:wuyinxian124,
项目名称:netty4.0.27Learn,
代码行数:5,
代码来源:NioServerSocketChannel.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)