Package org.h2.util
Class Utils10
java.lang.Object
org.h2.util.Utils10
Utilities with specialized implementations for Java 10 and later versions.
This class contains implementations for Java 10 and later versions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetTcpQuickack(Socket socket) Returns the value of TCP_QUICKACK option.static booleansetTcpQuickack(Socket socket, boolean value) Sets the value of TCP_QUICKACK option.
-
Method Details
-
getTcpQuickack
Returns the value of TCP_QUICKACK option.- Parameters:
socket- the socket- Returns:
- the current value of TCP_QUICKACK option
- Throws:
IOException- on I/O exceptionUnsupportedOperationException- if TCP_QUICKACK is not supported
-
setTcpQuickack
Sets the value of TCP_QUICKACK option.- Parameters:
socket- the socketvalue- the value to set- Returns:
- whether operation was successful
-