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.socket.DatagramChannelConfig;
22  
23  import java.net.InetAddress;
24  import java.net.NetworkInterface;
25  
26  public interface OioDatagramChannelConfig extends DatagramChannelConfig {
27      /**
28       * Sets the maximal time a operation on the underlying socket may block.
29       */
30      OioDatagramChannelConfig setSoTimeout(int timeout);
31  
32      /**
33       * Returns the maximal time a operation on the underlying socket may block.
34       */
35      int getSoTimeout();
36  
37      @Override
38      OioDatagramChannelConfig setSendBufferSize(int sendBufferSize);
39  
40      @Override
41      OioDatagramChannelConfig setReceiveBufferSize(int receiveBufferSize);
42  
43      @Override
44      OioDatagramChannelConfig setTrafficClass(int trafficClass);
45  
46      @Override
47      OioDatagramChannelConfig setReuseAddress(boolean reuseAddress);
48  
49      @Override
50      OioDatagramChannelConfig setBroadcast(boolean broadcast);
51  
52      @Override
53      OioDatagramChannelConfig setLoopbackModeDisabled(boolean loopbackModeDisabled);
54  
55      @Override
56      OioDatagramChannelConfig setTimeToLive(int ttl);
57  
58      @Override
59      OioDatagramChannelConfig setInterface(InetAddress interfaceAddress);
60  
61      @Override
62      OioDatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface);
63  
64      @Override
65      OioDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead);
66  
67      @Override
68      OioDatagramChannelConfig setWriteSpinCount(int writeSpinCount);
69  
70      @Override
71      OioDatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis);
72  
73      @Override
74      OioDatagramChannelConfig setAllocator(ByteBufAllocator allocator);
75  
76      @Override
77      OioDatagramChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator);
78  
79      @Override
80      OioDatagramChannelConfig setAutoRead(boolean autoRead);
81  
82      @Override
83      OioDatagramChannelConfig setAutoClose(boolean autoClose);
84  
85      @Override
86      OioDatagramChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator);
87  
88      @Override
89      OioDatagramChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark);
90  
91      @Override
92      OioDatagramChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark);
93  }