public class BoxConnectionManagerBuilder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
BoxConnectionManagerBuilder.BoxConnectionManager |
| Constructor and Description |
|---|
BoxConnectionManagerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
BoxConnectionManagerBuilder.BoxConnectionManager |
build() |
void |
setIdleTimeThreshold(long idleTimeThreshold) |
void |
setMaxConnection(int maxConnection) |
void |
setMaxConnectionPerRoute(int maxConnectionPerRoute) |
void |
setTimePeriodCleanUpIdleConnection(long timePeriodCleanUpIdleConnection) |
public BoxConnectionManagerBuilder.BoxConnectionManager build()
public void setMaxConnectionPerRoute(int maxConnectionPerRoute)
maxConnectionPerRoute - maximum connection allowed per route.public void setMaxConnection(int maxConnection)
maxConnection - maximum connection.public void setTimePeriodCleanUpIdleConnection(long timePeriodCleanUpIdleConnection)
timePeriodCleanUpIdleConnection - clean up idle connection every such period of time. in miliseconds.public void setIdleTimeThreshold(long idleTimeThreshold)
idleTimeThreshold - an idle connection will be closed if idled above this threshold of time. in miliseconds.