| java.lang.Object |
| ↳ |
org.mule.modules.riak.config.RiakProtobufClientConfigurationAdapter |
Class Overview
An adapter that allows DevKit to generate a configuration for Riak's
PBClientConfig.
Summary
| Fields |
|
private
PBClientConfig.Builder |
builder |
|
|
private
long |
connectionWaitTimeoutMillis |
How many milliseconds to block trying to obtain a connection from the pool
before failing. |
|
private
String |
host |
The host address for the Riak protocol buffers interface. |
|
private
long |
idleConnectionTTLMillis |
How many milliseconds an idle connection survives in the pool before it is
closed. |
|
private
int |
initialPoolSize |
The initial size for the connection pool. |
|
private
int |
poolSize |
The hard limit for the connection pool. |
|
private
int |
port |
The port for the Riak protocol buffers interface. |
|
private
int |
requestTimeoutMillis |
How many milliseconds to block/wait trying to read/write from/to a connection
(This is the SO_TIMEOUT parameter on the Socket). |
|
private
int |
socketBufferSizeKb |
The size for the protocol buffer socket's read, write and socket buffers (in
kilobytes). |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
org.mule.modules.riak.config.RiakClientConfigurationAdapter
|
Fields
private
PBClientConfig.Builder
builder
private
long
connectionWaitTimeoutMillis
How many milliseconds to block trying to obtain a connection from the pool
before failing.
private
String
host
The host address for the Riak protocol buffers interface.
private
long
idleConnectionTTLMillis
How many milliseconds an idle connection survives in the pool before it is
closed.
private
int
initialPoolSize
The initial size for the connection pool. The connection pool will create this
many connections when the pool starts up.
private
int
poolSize
The hard limit for the connection pool.
private
int
port
The port for the Riak protocol buffers interface.
private
int
requestTimeoutMillis
How many milliseconds to block/wait trying to read/write from/to a connection
(This is the SO_TIMEOUT parameter on the Socket).
private
int
socketBufferSizeKb
The size for the protocol buffer socket's read, write and socket buffers (in
kilobytes). Total buffers per connection will be 3 times this value.
Public Constructors
public
RiakProtobufClientConfigurationAdapter
()
Public Methods
public
PBClientConfig
buildRiakConfiguration
()
public
long
getConnectionWaitTimeoutMillis
()
public
long
getIdleConnectionTTLMillis
()
public
int
getInitialPoolSize
()
public
int
getPoolSize
()
public
int
getRequestTimeoutMillis
()
public
int
getSocketBufferSizeKb
()
public
void
setConnectionWaitTimeoutMillis
(long connectionWaitTimeoutMillis)
Parameters
| connectionWaitTimeoutMillis
| |
public
void
setHost
(String host)
public
void
setIdleConnectionTTLMillis
(long idleConnectionTTLMillis)
public
void
setInitialPoolSize
(int initialPoolSize)
public
void
setPoolSize
(int poolSize)
public
void
setPort
(int port)
public
void
setRequestTimeoutMillis
(int requestTimeoutMillis)
public
void
setSocketBufferSizeKb
(int socketBufferSizeKb)