| Modifier and Type | Field and Description | 
|---|---|
| static String | TCP_KEEPCOUNT | 
| static String | TCP_KEEPIDLE | 
| static String | TCP_KEEPINTERVAL | 
| Constructor and Description | 
|---|
| SocketSupport() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> SocketOption<T> | getExtendedSocketOptionOrNull(String fieldName) | 
| static <T> void | setOption(T object,
         String fieldName,
         T value)Object can be ServerSocket or Socket. | 
public static final String TCP_KEEPIDLE
public static final String TCP_KEEPINTERVAL
public static final String TCP_KEEPCOUNT
public static <T> SocketOption<T> getExtendedSocketOptionOrNull(String fieldName)
public static <T> void setOption(T object,
                                 String fieldName,
                                 T value)
                          throws IOException
T - ServerSocket or Socket.IOException - in case of an I/O error.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.