View Javadoc
1   /*
2    * Copyright 2017 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  package io.netty.channel.socket.oio;
17  
18  import io.netty.buffer.ByteBufAllocator;
19  import io.netty.channel.MessageSizeEstimator;
20  import io.netty.channel.RecvByteBufAllocator;
21  import io.netty.channel.WriteBufferWaterMark;
22  import io.netty.channel.socket.DatagramChannelConfig;
23  
24  import java.net.InetAddress;
25  import java.net.NetworkInterface;
26  
27  public interface OioDatagramChannelConfig extends DatagramChannelConfig {
28      /**
29       * Sets the maximal time a operation on the underlying socket may block.
30       */
31      OioDatagramChannelConfig setSoTimeout(int timeout);
32  
33      /**
34       * Returns the maximal time a operation on the underlying socket may block.
35       */
36      int getSoTimeout();
37  
38      @Override
39      OioDatagramChannelConfig setSendBufferSize(int sendBufferSize);
40  
41      @Override
42      OioDatagramChannelConfig setReceiveBufferSize(int receiveBufferSize);
43  
44      @Override
45      OioDatagramChannelConfig setTrafficClass(int trafficClass);
46  
47      @Override
48      OioDatagramChannelConfig setReuseAddress(boolean reuseAddress);
49  
50      @Override
51      OioDatagramChannelConfig setBroadcast(boolean broadcast);
52  
53      @Override
54      OioDatagramChannelConfig setLoopbackModeDisabled(boolean loopbackModeDisabled);
55  
56      @Override
57      OioDatagramChannelConfig setTimeToLive(int ttl);
58  
59      @Override
60      OioDatagramChannelConfig setInterface(InetAddress interfaceAddress);
61  
62      @Override
63      OioDatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface);
64  
65      @Override
66      OioDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead);
67  
68      @Override
69      OioDatagramChannelConfig setWriteSpinCount(int writeSpinCount);
70  
71      @Override
72      OioDatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis);
73  
74      @Override
75      OioDatagramChannelConfig setAllocator(ByteBufAllocator allocator);
76  
77      @Override
78      OioDatagramChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator);
79  
80      @Override
81      OioDatagramChannelConfig setAutoRead(boolean autoRead);
82  
83      @Override
84      OioDatagramChannelConfig setAutoClose(boolean autoClose);
85  
86      @Override
87      OioDatagramChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator);
88  
89      @Override
90      OioDatagramChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark);
91  
92      @Override
93      OioDatagramChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark);
94  
95      @Override
96      OioDatagramChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark);
97  }