ServicePointManager

Inheritance: java.lang.Object

public class ServicePointManager

Manages the collection of ServicePoint objects.

Constructors

ConstructorDescription
ServicePointManager()

Methods

MethodDescription
equals(Object arg0)
getClass()
getDefaultConnectionLimit()Gets or sets the maximum number of concurrent connections allowed by a ServicePoint object.
getExpect100Continue()Gets or sets a Boolean value that determines whether 100-Continue behavior is used.
getMaxServicePointIdleTime()Gets or sets the maximum idle time of a ServicePoint object.
getMaxServicePoints()Gets or sets the maximum number of ServicePoint objects to maintain at any time.
getSecurityProtocol()
getUseNagleAlgorithm()Determines whether the Nagle algorithm is used by the service points managed by this ServicePointManager object.
hashCode()
notify()
notifyAll()
setDefaultConnectionLimit(int value)Gets or sets the maximum number of concurrent connections allowed by a ServicePoint object.
setExpect100Continue(boolean value)Gets or sets a Boolean value that determines whether 100-Continue behavior is used.
setMaxServicePointIdleTime(int value)Gets or sets the maximum idle time of a ServicePoint object.
setMaxServicePoints(int value)Gets or sets the maximum number of ServicePoint objects to maintain at any time.
setSecurityProtocol(int value)
setTcpKeepAlive(boolean enabled, int keepAliveTime, int keepAliveInterval)Enables or disables the keep-alive option on a TCP connection.
setUseNagleAlgorithm(boolean value)Determines whether the Nagle algorithm is used by the service points managed by this ServicePointManager object.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ServicePointManager()

public ServicePointManager()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDefaultConnectionLimit()

public static int getDefaultConnectionLimit()

Gets or sets the maximum number of concurrent connections allowed by a ServicePoint object.

Returns: int

getExpect100Continue()

public static boolean getExpect100Continue()

Gets or sets a Boolean value that determines whether 100-Continue behavior is used.

Returns: boolean

getMaxServicePointIdleTime()

public static int getMaxServicePointIdleTime()

Gets or sets the maximum idle time of a ServicePoint object.

Returns: int

getMaxServicePoints()

public static int getMaxServicePoints()

Gets or sets the maximum number of ServicePoint objects to maintain at any time.

Returns: int

getSecurityProtocol()

public static int getSecurityProtocol()

Returns: int

getUseNagleAlgorithm()

public static boolean getUseNagleAlgorithm()

Determines whether the Nagle algorithm is used by the service points managed by this ServicePointManager object.

Returns: boolean

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setDefaultConnectionLimit(int value)

public static void setDefaultConnectionLimit(int value)

Gets or sets the maximum number of concurrent connections allowed by a ServicePoint object.

Parameters:

ParameterTypeDescription
valueint

setExpect100Continue(boolean value)

public static void setExpect100Continue(boolean value)

Gets or sets a Boolean value that determines whether 100-Continue behavior is used.

Parameters:

ParameterTypeDescription
valueboolean

setMaxServicePointIdleTime(int value)

public static void setMaxServicePointIdleTime(int value)

Gets or sets the maximum idle time of a ServicePoint object.

Parameters:

ParameterTypeDescription
valueint

setMaxServicePoints(int value)

public static void setMaxServicePoints(int value)

Gets or sets the maximum number of ServicePoint objects to maintain at any time.

Parameters:

ParameterTypeDescription
valueint

setSecurityProtocol(int value)

public static void setSecurityProtocol(int value)

Parameters:

ParameterTypeDescription
valueint

setTcpKeepAlive(boolean enabled, int keepAliveTime, int keepAliveInterval)

public static void setTcpKeepAlive(boolean enabled, int keepAliveTime, int keepAliveInterval)

Enables or disables the keep-alive option on a TCP connection.

Parameters:

ParameterTypeDescription
enabledbooleanIf set to true, then the TCP keep-alive option on a TCP connection will be enabled using the specified keepAliveTime and keepAliveInterval values.
keepAliveTimeintSpecifies the timeout, in milliseconds, with no activity until the first keep-alive packet is sent.
keepAliveIntervalintSpecifies the interval, in milliseconds, between when successive keep-alive packets are sent if no acknowledgement is received.

setUseNagleAlgorithm(boolean value)

public static void setUseNagleAlgorithm(boolean value)

Determines whether the Nagle algorithm is used by the service points managed by this ServicePointManager object.

Parameters:

ParameterTypeDescription
valueboolean

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int