public class PoolOptions extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_SIZE
The default maximum number of connections a client will pool = 4
|
static int |
DEFAULT_MAX_WAIT_QUEUE_SIZE
Default max wait queue size = -1 (unbounded)
|
Constructor and Description |
---|
PoolOptions() |
PoolOptions(JsonObject json) |
PoolOptions(PoolOptions other) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getMaxSize() |
int |
getMaxWaitQueueSize() |
int |
hashCode() |
PoolOptions |
setMaxSize(int maxSize)
Set the maximum pool size
|
PoolOptions |
setMaxWaitQueueSize(int maxWaitQueueSize)
Set the maximum connection request allowed in the wait queue, any requests beyond the max size will result in
an failure.
|
JsonObject |
toJson() |
public static final int DEFAULT_MAX_SIZE
public static final int DEFAULT_MAX_WAIT_QUEUE_SIZE
public PoolOptions()
public PoolOptions(JsonObject json)
public PoolOptions(PoolOptions other)
public int getMaxSize()
public PoolOptions setMaxSize(int maxSize)
maxSize
- the maximum pool sizepublic int getMaxWaitQueueSize()
public PoolOptions setMaxWaitQueueSize(int maxWaitQueueSize)
maxWaitQueueSize
- the maximum number of waiting requestspublic JsonObject toJson()
Copyright © 2020 Eclipse. All rights reserved.