Class SocketPerformancePreferences

java.lang.Object
org.apache.logging.log4j.core.net.SocketPerformancePreferences
All Implemented Interfaces:
Cloneable, Builder<SocketPerformancePreferences>

@Plugin(name="SocketPerformancePreferences", category="Core", printObject=true) public class SocketPerformancePreferences extends Object implements Builder<SocketPerformancePreferences>, Cloneable
Holds all socket options settable via Socket.setPerformancePreferences(int, int, int).

The Socket.setPerformancePreferences(int, int, int) API may not be implemented by a JRE.

  • Constructor Details

    • SocketPerformancePreferences

      public SocketPerformancePreferences()
  • Method Details

    • newBuilder

    • apply

      public void apply(Socket socket)
    • build

      Description copied from interface: Builder
      Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.
      Specified by:
      build in interface Builder<SocketPerformancePreferences>
      Returns:
      the configured instance.
    • getBandwidth

      public int getBandwidth()
    • getConnectionTime

      public int getConnectionTime()
    • getLatency

      public int getLatency()
    • setBandwidth

      public void setBandwidth(int bandwidth)
    • setConnectionTime

      public void setConnectionTime(int connectionTime)
    • setLatency

      public void setLatency(int latency)
    • toString

      public String toString()
      Overrides:
      toString in class Object