Package | Description |
---|---|
org.voltdb.client |
Package containing code specific to the VoltDB Java Client Driver.
|
Modifier and Type | Method and Description |
---|---|
Client2Config |
Client2Config.authenticatedSubject(javax.security.auth.Subject subject)
Sets the authenticated subject to be used for connections
to VoltDB.
|
Client2Config |
Client2Config.clientRequestBackpressureLevel(int warning,
int resume)
Sets levels for controlling backpressure notifications.
|
Client2Config |
Client2Config.clientRequestLimit(int limit)
Sets the limit on the number of requests that can be pending in
a client at any one time.
|
Client2Config |
Client2Config.connectFailureHandler(Client2Notification.ConnectionStatus handler)
Registers a handler for connection-establishment failures.
|
Client2Config |
Client2Config.connectionDownHandler(Client2Notification.ConnectionStatus handler)
Registers a handler for connection-down events.
|
Client2Config |
Client2Config.connectionResponseTimeout(long timeout,
java.util.concurrent.TimeUnit unit)
Sets the connection response timeout.
|
Client2Config |
Client2Config.connectionSetupTimeout(long timeout,
java.util.concurrent.TimeUnit unit)
Sets the timeout for connection setup, including authentication
to the server.
|
Client2Config |
Client2Config.connectionUpHandler(Client2Notification.ConnectionStatus handler)
Registers a handler for connection-up events.
|
Client2Config |
Client2Config.defaultTrustStore()
Configures trust store for TLS/SSL using installation defaults,
determined as follows:
|
Client2Config |
Client2Config.disableConnectionMgmt()
Disable automatic connection management.
|
Client2Config |
Client2Config.enableSSL()
Enables TLS/SSL for server connections.
|
Client2Config |
Client2Config.enableSSLHostCheck()
If TLS/SSL is enabled, this enables verification of the host
identification (either dnsName or IP address) in the X.509
certificate's SubjectAlternativeName extension.
|
Client2Config |
Client2Config.errorLogHandler(Client2Notification.ErrorLog handler)
Registers an error-log handler.
|
Client2Config |
Client2Config.hashedPassword(java.lang.String password)
Set hashed password for connections to VoltDB.
|
Client2Config |
Client2Config.hashedPassword(java.lang.String password,
org.voltdb.client.ClientAuthScheme hashScheme)
Set hashed password for connections to VoltDB.
|
Client2Config |
Client2Config.lateResponseHandler(Client2Notification.LateResponse handler)
Registers a handler for late server responses.
|
Client2Config |
Client2Config.loginContext(java.lang.String name)
Creates a new login context and authenticates the user, then
adds the authenticated subject to this client configuration.
|
Client2Config |
Client2Config.networkBackpressureLevel(int level)
This setting controls the maximum number of requests that
the Client2 API can have queued at the VoltDB network
layer for a single connection.
|
Client2Config |
Client2Config.outstandingTransactionLimit(int limit)
Sets the limit on the number of transactions that can be
outstanding at the VoltDB server at any one time.
|
Client2Config |
Client2Config.password(java.lang.String password)
Set cleartext password for connections to VoltDB.
|
Client2Config |
Client2Config.procedureCallTimeout(long timeout,
java.util.concurrent.TimeUnit unit)
Sets the timeout for procedure calls.
|
Client2Config |
Client2Config.reconnectDelay(long initialDelay,
long retryDelay,
java.util.concurrent.TimeUnit unit)
Sets delay times for attempts to reconnect failed connections.
|
Client2Config |
Client2Config.requestBackpressureHandler(Client2Notification.RequestBackpressure handler)
Registers a handler to be notified about changes in request backpressure.
|
Client2Config |
Client2Config.requestPriority(int prio)
Sets the default priority for procedure calls from
a
Client2 created using this configuration. |
Client2Config |
Client2Config.responseExecutorService(java.util.concurrent.ExecutorService execService,
boolean stopOnClose)
Provides an
ExecutorService with which to
complete callProcedure requests. |
Client2Config |
Client2Config.responseThreadCount(int count)
Sets the fixed number of 'response' threads to be available
in the pool of such threads.
|
Client2Config |
Client2Config.roundingMode(boolean enable,
java.math.RoundingMode mode)
Enables or disables the rounding mode in the client.
|
Client2Config |
Client2Config.transactionRateLimit(int tpsLimit)
Limits the rate at which transactions can be sent to the
VoltDB server.
|
Client2Config |
Client2Config.trustStore(java.lang.String path,
java.lang.String password)
Configures trust store for TLS/SSL using a specified name for the
trust store and a specified password.
|
Client2Config |
Client2Config.trustStoreFromPropertyFile(java.lang.String path)
Configures trust store for TLS/SSL from a property file.
|
Client2Config |
Client2Config.username(java.lang.String username)
Set username for connections to VoltDB.
|
Modifier and Type | Method and Description |
---|---|
static Client2 |
ClientFactory.createClient(Client2Config config)
Create a "version 2" client,
Client2 . |