All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.html.lib.node.http.AgentOptions Maven / Gradle / Ivy

The newest version!
package net.java.html.lib.node.http;
public class AgentOptions extends net.java.html.lib.Objs {
  protected AgentOptions(net.java.html.lib.Objs.Constructor c, java.lang.Object js) {
    super(c, js);
  }
  private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
    $Constructor() {
      super(AgentOptions.class);
    }
    @Override
    public AgentOptions create(java.lang.Object obj) {
      return obj == null ? null : new AgentOptions(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static AgentOptions $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  /**
  * Keep sockets around in a pool to be used by other requests in the future. Default = false
  */
  public net.java.html.lib.Objs.Property keepAlive = net.java.html.lib.Objs.Property.create(this, java.lang.Boolean.class, "keepAlive");
  public java.lang.Boolean keepAlive() { return keepAlive.get(); }
  /**
  * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
  * Only relevant if keepAlive is set to true.
  */
  public net.java.html.lib.Objs.Property keepAliveMsecs = net.java.html.lib.Objs.Property.create(this, java.lang.Number.class, "keepAliveMsecs");
  public java.lang.Number keepAliveMsecs() { return keepAliveMsecs.get(); }
  /**
  * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
  */
  public net.java.html.lib.Objs.Property maxSockets = net.java.html.lib.Objs.Property.create(this, java.lang.Number.class, "maxSockets");
  public java.lang.Number maxSockets() { return maxSockets.get(); }
  /**
  * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
  */
  public net.java.html.lib.Objs.Property maxFreeSockets = net.java.html.lib.Objs.Property.create(this, java.lang.Number.class, "maxFreeSockets");
  public java.lang.Number maxFreeSockets() { return maxFreeSockets.get(); }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy