public class ConnectionMonitor extends Object
| Constructor and Description |
|---|
ConnectionMonitor() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.conn.ClientConnectionManager |
getConnectionManagerInstance() |
static org.apache.http.params.HttpParams |
getHttpParams() |
static void |
setIdleTimeThreshold(long idleTimeThreshold) |
static void |
setMaxConnection(int maxConnection) |
static void |
setMaxConnectionPerRoute(int maxConnectionPerRoute) |
static void |
setTimePeriodCleanUpIdleConnection(long timePeriodCleanUpIdleConnection) |
public static org.apache.http.conn.ClientConnectionManager getConnectionManagerInstance()
public static org.apache.http.params.HttpParams getHttpParams()
public static void setMaxConnectionPerRoute(int maxConnectionPerRoute)
public static void setMaxConnection(int maxConnection)
public static void setTimePeriodCleanUpIdleConnection(long timePeriodCleanUpIdleConnection)
timePeriodCleanUpIdleConnection - clean up idle connection every such period of time. in miliseconds.public static void setIdleTimeThreshold(long idleTimeThreshold)
idleTimeThreshold - an idle connection will be closed if idled above this threshold of time. in miliseconds.Copyright © 2014. All Rights Reserved.