public class PBClientConfig extends Object implements Configuration
Modifier and Type | Class and Description |
---|---|
static class |
PBClientConfig.Builder
Builder for the
PBClientConfig Has the following default values:
field
default
socketBufferSizeKb
16
host
127.0.0.1
port
8087
poolSize
0 (unlimited)
initialPoolSize
0
idleConnectionTTLMillis
1000 (idle connections will be closed after 1 second)
connectionWaitTimeoutMillis
1000 (if a connection cannot be acquired within this time and
exception is thrown)
requestTimeoutMillis
0 (no timeout)
|
Modifier and Type | Method and Description |
---|---|
static PBClientConfig |
defaults()
Create an instance with all default values.
|
long |
getConnectionWaitTimeoutMillis() |
String |
getHost() |
long |
getIdleConnectionTTLMillis() |
int |
getInitialPoolSize() |
int |
getPoolSize() |
int |
getPort() |
int |
getRequestTimeoutMillis() |
int |
getSocketBufferSizeKb() |
public static PBClientConfig defaults()
PBClientConfig.Builder
public int getSocketBufferSizeKb()
public String getHost()
public int getPort()
public int getPoolSize()
public int getInitialPoolSize()
public long getIdleConnectionTTLMillis()
public long getConnectionWaitTimeoutMillis()
public int getRequestTimeoutMillis()
Copyright © 2014. All Rights Reserved.