Use correct generics for TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT in EpollChannelOption. Part of [#2396]

Motivation:
Currently the generics used for TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT are incorrect.

Modifications:
Use Integer as type

Result:
User can use TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT as expected
This commit is contained in:
Norman Maurer 2014-04-21 09:56:57 +02:00
parent 8e314cdbca
commit 302d116728

View File

@ -20,9 +20,9 @@ import io.netty.channel.ChannelOption;
public final class EpollChannelOption<T> extends ChannelOption<T> { public final class EpollChannelOption<T> extends ChannelOption<T> {
public static final ChannelOption<Boolean> TCP_CORK = valueOf("TCP_CORK"); public static final ChannelOption<Boolean> TCP_CORK = valueOf("TCP_CORK");
public static final ChannelOption<Boolean> TCP_KEEPIDLE = valueOf("TCP_KEEPIDLE"); public static final ChannelOption<Integer> TCP_KEEPIDLE = valueOf("TCP_KEEPIDLE");
public static final ChannelOption<Boolean> TCP_KEEPINTVL = valueOf("TCP_KEEPINTVL"); public static final ChannelOption<Integer> TCP_KEEPINTVL = valueOf("TCP_KEEPINTVL");
public static final ChannelOption<Boolean> TCP_KEEPCNT = valueOf("TCP_KEEPCNT"); public static final ChannelOption<Integer> TCP_KEEPCNT = valueOf("TCP_KEEPCNT");
public static final ChannelOption<Boolean> SO_REUSEPORT = valueOf("SO_REUSEPORT"); public static final ChannelOption<Boolean> SO_REUSEPORT = valueOf("SO_REUSEPORT");