Package org.h2.util
Class Utils10
- java.lang.Object
-
- org.h2.util.Utils10
-
public final class Utils10 extends java.lang.ObjectUtilities with specialized implementations for Java 10 and later versions. This class contains implementations for Java 10 and later versions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetTcpQuickack(java.net.Socket socket)Returns the value of TCP_QUICKACK option.static booleansetTcpQuickack(java.net.Socket socket, boolean value)Sets the value of TCP_QUICKACK option.
-
-
-
Method Detail
-
getTcpQuickack
public static boolean getTcpQuickack(java.net.Socket socket) throws java.io.IOExceptionReturns the value of TCP_QUICKACK option.- Parameters:
socket- the socket- Returns:
- the current value of TCP_QUICKACK option
- Throws:
java.io.IOException- on I/O exceptionjava.lang.UnsupportedOperationException- if TCP_QUICKACK is not supported
-
setTcpQuickack
public static boolean setTcpQuickack(java.net.Socket socket, boolean value)Sets the value of TCP_QUICKACK option.- Parameters:
socket- the socketvalue- the value to set- Returns:
- whether operation was successful
-
-