Class NetUtils

java.lang.Object
org.elasticsearch.core.internal.net.NetUtils

public class NetUtils
extends java.lang.Object
Utilities for network-related methods.
  • Constructor Summary

    Constructors 
    Constructor Description
    NetUtils()  
  • Method Summary

    Modifier and Type Method Description
    static java.net.SocketOption<java.lang.Integer> getTcpKeepCountSocketOptionOrNull()
    Returns the extended TCP_KEEPCOUNT socket option, if available on this JDK
    static java.net.SocketOption<java.lang.Integer> getTcpKeepIdleSocketOptionOrNull()
    Returns the extended TCP_KEEPIDLE socket option, if available on this JDK
    static java.net.SocketOption<java.lang.Integer> getTcpKeepIntervalSocketOptionOrNull()
    Returns the extended TCP_KEEPINTERVAL socket option, if available on this JDK

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getTcpKeepIdleSocketOptionOrNull

      public static java.net.SocketOption<java.lang.Integer> getTcpKeepIdleSocketOptionOrNull()
      Returns the extended TCP_KEEPIDLE socket option, if available on this JDK
    • getTcpKeepIntervalSocketOptionOrNull

      public static java.net.SocketOption<java.lang.Integer> getTcpKeepIntervalSocketOptionOrNull()
      Returns the extended TCP_KEEPINTERVAL socket option, if available on this JDK
    • getTcpKeepCountSocketOptionOrNull

      public static java.net.SocketOption<java.lang.Integer> getTcpKeepCountSocketOptionOrNull()
      Returns the extended TCP_KEEPCOUNT socket option, if available on this JDK