GeezerVison is showing github.com — Epoll: Remove outdated docs about usage of edge-triggered (#16478) · netty/netty@d5d6bae
File tree
Expand file treeCollapse file tree
Open diff view settings
transport-classes-epoll/src/main/java/io/netty/channel/epoll
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollChannelConfig.java +1-6Lines changed: 1 addition & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -180,10 +180,7 @@ public EpollChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator |
180 | 180 | } |
181 | 181 |
|
182 | 182 | /** |
183 | | - * Return the {@link EpollMode} used. Default is |
184 | | - * {@link EpollMode#EDGE_TRIGGERED}. If you want to use {@link #isAutoRead()} {@code false} or |
185 | | - * {@link #getMaxMessagesPerRead()} and have an accurate behaviour you should use |
186 | | - * {@link EpollMode#LEVEL_TRIGGERED}. |
| 183 | + * Return the {@link EpollMode} used. |
187 | 184 | * |
188 | 185 | * @deprecated Netty always uses level-triggered mode and so this method is just a no-op. |
189 | 186 | */ |
@@ -194,8 +191,6 @@ public EpollMode getEpollMode() { |
194 | 191 |
|
195 | 192 | /** |
196 | 193 | * Set the {@link EpollMode} used. Default is |
197 | | - * {@link EpollMode#EDGE_TRIGGERED}. If you want to use {@link #isAutoRead()} {@code false} or |
198 | | - * {@link #getMaxMessagesPerRead()} and have an accurate behaviour you should use |
199 | 194 | * {@link EpollMode#LEVEL_TRIGGERED}. |
200 | 195 | * |
201 | 196 | * <strong>Be aware this config setting can only be adjusted before the channel was registered.</strong> |
|
Collapse file
Copy file name to clipboardExpand all lines: transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollDatagramChannel.java +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
55 | 55 | import static io.netty.channel.epoll.LinuxSocket.newSocketDgram; |
56 | 56 |
|
57 | 57 | /** |
58 | | - * {@link DatagramChannel} implementation that uses linux EPOLL Edge-Triggered Mode for |
59 | | - * maximal performance. |
| 58 | + * {@link DatagramChannel} implementation that uses linux EPOLL. |
60 | 59 | */ |
61 | 60 | public final class EpollDatagramChannel extends AbstractEpollChannel implements DatagramChannel { |
62 | 61 | private static final InternalLogger logger = InternalLoggerFactory.getInstance(EpollDatagramChannel.class); |
|
Collapse file
Copy file name to clipboardExpand all lines: transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollServerSocketChannel.java +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
33 | 33 | import static io.netty.channel.unix.NativeInetAddress.address; |
34 | 34 |
|
35 | 35 | /** |
36 | | - * {@link ServerSocketChannel} implementation that uses linux EPOLL Edge-Triggered Mode for |
37 | | - * maximal performance. |
| 36 | + * {@link ServerSocketChannel} implementation that uses linux EPOLL. |
38 | 37 | */ |
39 | 38 | public final class EpollServerSocketChannel extends AbstractEpollServerChannel implements ServerSocketChannel { |
40 | 39 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollSocketChannel.java +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
38 | 38 | import static io.netty.channel.epoll.Native.IS_SUPPORTING_TCP_FASTOPEN_CLIENT; |
39 | 39 |
|
40 | 40 | /** |
41 | | - * {@link SocketChannel} implementation that uses linux EPOLL Edge-Triggered Mode for |
42 | | - * maximal performance. |
| 41 | + * {@link SocketChannel} implementation that uses linux EPOLL. |
43 | 42 | */ |
44 | 43 | public final class EpollSocketChannel extends AbstractEpollStreamChannel implements SocketChannel { |
45 | 44 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: transport-classes-epoll/src/main/java/io/netty/channel/epoll/package-info.java +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | /** |
18 | | - * Optimized transport for linux which uses <a href="https://en.wikipedia.org/wiki/Epoll">EPOLL Edge-Triggered Mode</a> |
19 | | - * for maximal performance. |
| 18 | + * Optimized transport for linux which uses <a href="https://en.wikipedia.org/wiki/Epoll">EPOLL</a>. |
20 | 19 | */ |
21 | 20 | package io.netty.channel.epoll; |