View Javadoc
1   /*
2    * Copyright 2013 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.udt;
17  
18  import com.barchart.udt.TypeUDT;
19  import com.barchart.udt.nio.KindUDT;
20  import io.netty.buffer.ByteBufAllocator;
21  import io.netty.channel.ChannelConfig;
22  import io.netty.channel.ChannelException;
23  import io.netty.channel.ChannelOption;
24  import io.netty.channel.MessageSizeEstimator;
25  import io.netty.channel.RecvByteBufAllocator;
26  import io.netty.channel.WriteBufferWaterMark;
27  
28  /**
29   * A {@link ChannelConfig} for a {@link UdtServerChannel}.
30   * <p>
31   * Note that {@link TypeUDT#DATAGRAM} message oriented channels treat
32   * {@code "receiveBufferSize"} and {@code "sendBufferSize"} as maximum message
33   * size. If received or sent message does not fit specified sizes,
34   * {@link ChannelException} will be thrown.
35   *
36   * @deprecated The UDT transport is no longer maintained and will be removed.
37   */
38  @Deprecated
39  public interface UdtServerChannelConfig extends UdtChannelConfig {
40  
41      /**
42       * Gets {@link KindUDT#ACCEPTOR} channel backlog via
43       * {@link ChannelOption#SO_BACKLOG}.
44       */
45      int getBacklog();
46  
47      /**
48       * Sets {@link KindUDT#ACCEPTOR} channel backlog via
49       * {@link ChannelOption#SO_BACKLOG}.
50       */
51      UdtServerChannelConfig setBacklog(int backlog);
52  
53      @Override
54      UdtServerChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis);
55  
56      @Override
57      @Deprecated
58      UdtServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead);
59  
60      @Override
61      UdtServerChannelConfig setWriteSpinCount(int writeSpinCount);
62  
63      @Override
64      UdtServerChannelConfig setAllocator(ByteBufAllocator allocator);
65  
66      @Override
67      UdtServerChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator);
68  
69      @Override
70      UdtServerChannelConfig setAutoRead(boolean autoRead);
71  
72      @Override
73      UdtServerChannelConfig setAutoClose(boolean autoClose);
74  
75      @Override
76      UdtServerChannelConfig setProtocolReceiveBufferSize(int size);
77  
78      @Override
79      UdtServerChannelConfig setProtocolSendBufferSize(int size);
80  
81      @Override
82      UdtServerChannelConfig setReceiveBufferSize(int receiveBufferSize);
83  
84      @Override
85      UdtServerChannelConfig setReuseAddress(boolean reuseAddress);
86  
87      @Override
88      UdtServerChannelConfig setSendBufferSize(int sendBufferSize);
89  
90      @Override
91      UdtServerChannelConfig setSoLinger(int soLinger);
92  
93      @Override
94      UdtServerChannelConfig setSystemReceiveBufferSize(int size);
95  
96      @Override
97      UdtServerChannelConfig setSystemSendBufferSize(int size);
98  
99      @Override
100     UdtServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark);
101 
102     @Override
103     UdtServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark);
104 
105     @Override
106     UdtServerChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark);
107 
108     @Override
109     UdtServerChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator);
110 }