1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.channel.socket.oio;
17
18 import io.netty.buffer.ByteBufAllocator;
19 import io.netty.channel.ChannelOption;
20 import io.netty.channel.MessageSizeEstimator;
21 import io.netty.channel.RecvByteBufAllocator;
22 import io.netty.channel.socket.ServerSocketChannelConfig;
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 public interface OioServerSocketChannelConfig extends ServerSocketChannelConfig {
43
44
45
46
47 OioServerSocketChannelConfig setSoTimeout(int timeout);
48
49
50
51
52 int getSoTimeout();
53
54 @Override
55 OioServerSocketChannelConfig setBacklog(int backlog);
56
57 @Override
58 OioServerSocketChannelConfig setReuseAddress(boolean reuseAddress);
59
60 @Override
61 OioServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize);
62
63 @Override
64 OioServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth);
65
66 @Override
67 OioServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis);
68
69 @Override
70 OioServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead);
71
72 @Override
73 OioServerSocketChannelConfig setWriteSpinCount(int writeSpinCount);
74
75 @Override
76 OioServerSocketChannelConfig setAllocator(ByteBufAllocator allocator);
77
78 @Override
79 OioServerSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator);
80
81 @Override
82 OioServerSocketChannelConfig setAutoRead(boolean autoRead);
83
84 @Override
85 OioServerSocketChannelConfig setAutoClose(boolean autoClose);
86
87 @Override
88 OioServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark);
89
90 @Override
91 OioServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark);
92
93 @Override
94 OioServerSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator);
95 }