
**Inheritance:**
java.lang.Object
```
public class ServicePointManager
```

Manages the collection of ServicePoint objects.
## Constructors

| Constructor | Description |
| --- | --- |
| [ServicePointManager()](#ServicePointManager--) |  |
## Methods

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


### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getDefaultConnectionLimit() {#getDefaultConnectionLimit--}
```
public static int getDefaultConnectionLimit()
```


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

**Returns:**
int
### getExpect100Continue() {#getExpect100Continue--}
```
public static boolean getExpect100Continue()
```


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

**Returns:**
boolean
### getMaxServicePointIdleTime() {#getMaxServicePointIdleTime--}
```
public static int getMaxServicePointIdleTime()
```


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

**Returns:**
int
### getMaxServicePoints() {#getMaxServicePoints--}
```
public static int getMaxServicePoints()
```


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

**Returns:**
int
### getSecurityProtocol() {#getSecurityProtocol--}
```
public static int getSecurityProtocol()
```




**Returns:**
int
### getUseNagleAlgorithm() {#getUseNagleAlgorithm--}
```
public static boolean getUseNagleAlgorithm()
```


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

**Returns:**
boolean
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setDefaultConnectionLimit(int value) {#setDefaultConnectionLimit-int-}
```
public static void setDefaultConnectionLimit(int value)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setExpect100Continue(boolean value) {#setExpect100Continue-boolean-}
```
public static void setExpect100Continue(boolean value)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setMaxServicePointIdleTime(int value) {#setMaxServicePointIdleTime-int-}
```
public static void setMaxServicePointIdleTime(int value)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setMaxServicePoints(int value) {#setMaxServicePoints-int-}
```
public static void setMaxServicePoints(int value)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setSecurityProtocol(int value) {#setSecurityProtocol-int-}
```
public static void setSecurityProtocol(int value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setTcpKeepAlive(boolean enabled, int keepAliveTime, int keepAliveInterval) {#setTcpKeepAlive-boolean-int-int-}
```
public static void setTcpKeepAlive(boolean enabled, int keepAliveTime, int keepAliveInterval)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| enabled | boolean | If set to true, then the TCP keep-alive option on a TCP connection will be enabled using the specified keepAliveTime and keepAliveInterval values. |
| keepAliveTime | int | Specifies the timeout, in milliseconds, with no activity until the first keep-alive packet is sent. |
| keepAliveInterval | int | Specifies the interval, in milliseconds, between when successive keep-alive packets are sent if no acknowledgement is received. |

### setUseNagleAlgorithm(boolean value) {#setUseNagleAlgorithm-boolean-}
```
public static void setUseNagleAlgorithm(boolean value)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

