软件包 | 描述 |
---|---|
io.netty.channel.socket.oio |
旧阻塞基于I / O的套接字通道API实现 - 建议少量连接(<1000)。
|
Modifier and Type | Method and Description |
---|---|
OioDatagramChannelConfig |
OioDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setAutoClose(boolean autoClose) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setAutoRead(boolean autoRead) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setBroadcast(boolean broadcast) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setConnectTimeoutMillis(int connectTimeoutMillis) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setInterface(java.net.InetAddress interfaceAddress) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setLoopbackModeDisabled(boolean loopbackModeDisabled) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setMaxMessagesPerRead(int maxMessagesPerRead) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setNetworkInterface(java.net.NetworkInterface networkInterface) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setReceiveBufferSize(int receiveBufferSize) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setReuseAddress(boolean reuseAddress) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setSendBufferSize(int sendBufferSize) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setSoTimeout(int timeout)
设置底层套接字上的操作可能会阻止的最大时间。
|
OioDatagramChannelConfig |
OioDatagramChannelConfig.setTimeToLive(int ttl) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setTrafficClass(int trafficClass) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setWriteSpinCount(int writeSpinCount) |
Copyright © 2008–2018 The Netty Project. All rights reserved.