public abstract class AbstractServiceConfig extends Object
Defines a general config for a Service
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_IDLE_TIME |
static int |
NO_IDLE_TIME |
Modifier | Constructor and Description |
---|---|
protected |
AbstractServiceConfig(int minEndpoints,
int maxEndpoints,
boolean pipelined,
int idleTime) |
Modifier and Type | Method and Description |
---|---|
int |
idleTime()
The time in seconds (minimum, approx) after when idle the socket will be closed.
|
boolean |
isPipelined()
If this service is pipelined (more than one request at the same time on the same socket).
|
int |
maxEndpoints()
The maximum endpoints per node which will be established.
|
int |
minEndpoints()
The minimum endpoints per node which will always be established.
|
String |
toString() |
public static final int NO_IDLE_TIME
public static final int DEFAULT_IDLE_TIME
protected AbstractServiceConfig(int minEndpoints, int maxEndpoints, boolean pipelined, int idleTime)
public int minEndpoints()
The minimum endpoints per node which will always be established.
public int maxEndpoints()
The maximum endpoints per node which will be established.
public boolean isPipelined()
If this service is pipelined (more than one request at the same time on the same socket).
public int idleTime()
The time in seconds (minimum, approx) after when idle the socket will be closed.
Copyright © 2017 Couchbase, Inc.. All rights reserved.