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