@Test public void getGetOptions() { Map<ChannelOption<?>, Object> map = ch.config().getOptions(); assertFalse(map.isEmpty()); }
@Override public Map<ChannelOption<?>, Object> getOptions() { return getOptions(super.getOptions(), EpollChannelOption.SO_REUSEPORT, EpollChannelOption.IP_FREEBIND, EpollChannelOption.IP_TRANSPARENT, EpollChannelOption.TCP_DEFER_ACCEPT); }
EpollServerSocketChannelConfig extends EpollServerChannelConfig implements ServerSocketChannelConfig { @Override public Map<ChannelOption<?>, Object> getOptions() { return getOptions(super.getOptions(), EpollChannelOption.SO_REUSEPORT, EpollChannelOption.IP_FREEBIND, EpollChannelOption.IP_TRANSPARENT, EpollChannelOption.TCP_DEFER_ACCEPT); } }
EpollServerSocketChannelConfig extends EpollServerChannelConfig implements ServerSocketChannelConfig { @Override public Map<ChannelOption<?>, Object> getOptions() { return getOptions(super.getOptions(), EpollChannelOption.SO_REUSEPORT, EpollChannelOption.IP_FREEBIND, EpollChannelOption.IP_TRANSPARENT, EpollChannelOption.TCP_DEFER_ACCEPT); } EpollServerSocketChannelConfig(EpollServerSocketChannel channel); }
EpollServerSocketChannelConfig extends EpollServerChannelConfig implements ServerSocketChannelConfig { @Override public Map<ChannelOption<?>, Object> getOptions() { return getOptions(super.getOptions(), EpollChannelOption.SO_REUSEPORT, EpollChannelOption.IP_FREEBIND, EpollChannelOption.IP_TRANSPARENT, EpollChannelOption.TCP_DEFER_ACCEPT); } EpollServerSocketChannelConfig(EpollServerSocketChannel channel); @Override Map<ChannelOption<?>, Object> getOptions(); @SuppressWarnings("unchecked") @Override T getOption(ChannelOption<T> option); @Override boolean setOption(ChannelOption<T> option, T value); @Override EpollServerSocketChannelConfig setReuseAddress(boolean reuseAddress); @Override EpollServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize); @Override EpollServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth); @Override EpollServerSocketChannelConfig setBacklog(int backlog); @Override EpollServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis); @Override @Deprecated EpollServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead); @Override EpollServerSocketChannelConfig setWriteSpinCount(int writeSpinCount); @Override EpollServerSocketChannelConfig setAllocator(ByteBufAllocator allocator); @Override EpollServerSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator); @Override EpollServerSocketChannelConfig setAutoRead(boolean autoRead); @Override @Deprecated EpollServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark); @Override @Deprecated EpollServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark); @Override EpollServerSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark); @Override EpollServerSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator); EpollServerSocketChannelConfig setTcpMd5Sig(Map<InetAddress, byte[]> keys); boolean isReusePort(); EpollServerSocketChannelConfig setReusePort(boolean reusePort); boolean isFreeBind(); EpollServerSocketChannelConfig setFreeBind(boolean freeBind); boolean isIpTransparent(); EpollServerSocketChannelConfig setIpTransparent(boolean transparent); EpollServerSocketChannelConfig setTcpDeferAccept(int deferAccept); int getTcpDeferAccept(); }
EpollServerSocketChannelConfig extends EpollServerChannelConfig implements ServerSocketChannelConfig { @Override public Map<ChannelOption<?>, Object> getOptions() { return getOptions(super.getOptions(), EpollChannelOption.SO_REUSEPORT, EpollChannelOption.IP_FREEBIND, EpollChannelOption.IP_TRANSPARENT, EpollChannelOption.TCP_DEFER_ACCEPT); } EpollServerSocketChannelConfig(EpollServerSocketChannel channel); @Override Map<ChannelOption<?>, Object> getOptions(); @SuppressWarnings("unchecked") @Override T getOption(ChannelOption<T> option); @Override boolean setOption(ChannelOption<T> option, T value); @Override EpollServerSocketChannelConfig setReuseAddress(boolean reuseAddress); @Override EpollServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize); @Override EpollServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth); @Override EpollServerSocketChannelConfig setBacklog(int backlog); @Override EpollServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis); @Override @Deprecated EpollServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead); @Override EpollServerSocketChannelConfig setWriteSpinCount(int writeSpinCount); @Override EpollServerSocketChannelConfig setAllocator(ByteBufAllocator allocator); @Override EpollServerSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator); @Override EpollServerSocketChannelConfig setAutoRead(boolean autoRead); @Override @Deprecated EpollServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark); @Override @Deprecated EpollServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark); @Override EpollServerSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark); @Override EpollServerSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator); EpollServerSocketChannelConfig setTcpMd5Sig(Map<InetAddress, byte[]> keys); boolean isReusePort(); EpollServerSocketChannelConfig setReusePort(boolean reusePort); boolean isFreeBind(); EpollServerSocketChannelConfig setFreeBind(boolean freeBind); boolean isIpTransparent(); EpollServerSocketChannelConfig setIpTransparent(boolean transparent); EpollServerSocketChannelConfig setTcpDeferAccept(int deferAccept); int getTcpDeferAccept();  }