Top Description Constructors Methods
org.h2.util

public final Class Utils10

extends Object
Class Inheritance
Imports
java.io.IOException, java.net.Socket, jdk.net.ExtendedSocketOptions

Utilities with specialized implementations for Java 10 and later versions. This class contains implementations for Java 10 and later versions.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

the current value of TCP_QUICKACK option
getTcpQuickack
(Socket
the socket
socket
)

Returns the value of TCP_QUICKACK option.

public static boolean

Returns:

whether operation was successful
setTcpQuickack
(Socket
the socket
socket
,
boolean
the value to set
value
)

Sets the value of TCP_QUICKACK option.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Utils10back to summary
private Utils10()

Method Detail

getTcpQuickackback to summary
public static boolean getTcpQuickack(Socket socket) throws IOException

Returns the value of TCP_QUICKACK option.

Parameters
socket:Socket

the socket

Returns:boolean

the current value of TCP_QUICKACK option

Exceptions
IOException:
on I/O exception
UnsupportedOperationException:
if TCP_QUICKACK is not supported
setTcpQuickackback to summary
public static boolean setTcpQuickack(Socket socket, boolean value)

Sets the value of TCP_QUICKACK option.

Parameters
socket:Socket

the socket

value:boolean

the value to set

Returns:boolean

whether operation was successful