1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.channel.socket;
17
18 import io.netty.buffer.ByteBufAllocator;
19 import io.netty.channel.ChannelConfig;
20 import io.netty.channel.MessageSizeEstimator;
21 import io.netty.channel.RecvByteBufAllocator;
22 import io.netty.channel.WriteBufferWaterMark;
23
24 import java.net.ServerSocket;
25 import java.net.StandardSocketOptions;
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 public interface ServerSocketChannelConfig extends ChannelConfig {
49
50
51
52
53
54 int getBacklog();
55
56
57
58
59
60 ServerSocketChannelConfig setBacklog(int backlog);
61
62
63
64
65 boolean isReuseAddress();
66
67
68
69
70 ServerSocketChannelConfig setReuseAddress(boolean reuseAddress);
71
72
73
74
75 int getReceiveBufferSize();
76
77
78
79
80 ServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize);
81
82
83
84
85
86 ServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth);
87
88 @Override
89 ServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis);
90
91 @Override
92 @Deprecated
93 ServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead);
94
95 @Override
96 ServerSocketChannelConfig setWriteSpinCount(int writeSpinCount);
97
98 @Override
99 ServerSocketChannelConfig setAllocator(ByteBufAllocator allocator);
100
101 @Override
102 ServerSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator);
103
104 @Override
105 ServerSocketChannelConfig setAutoRead(boolean autoRead);
106
107 @Override
108 ServerSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator);
109
110 @Override
111 ServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark);
112
113 @Override
114 ServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark);
115
116 @Override
117 ServerSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark);
118
119 }