public interface ClusteredDatasetManagerBuilder
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_CONNECTION_TIMEOUT_MS
The default connection timeout in milliseconds.
|
static long |
DEFAULT_RECONNECT_TIMEOUT_MS
The default reconnect timeout in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
DatasetManager |
build()
Creates the DatasetManager that has been configured using this ClusteredDatasetManagerBuilder
|
ClusteredDatasetManagerBuilder |
withClientAlias(java.lang.String alias)
Sets an alias to identify this clustered client.
|
ClusteredDatasetManagerBuilder |
withClientTags(java.util.Set<java.lang.String> tags)
Sets some tags to categorize this clustered client.
|
default ClusteredDatasetManagerBuilder |
withClientTags(java.lang.String... tags)
Sets some tags to categorize this clustered client.
|
ClusteredDatasetManagerBuilder |
withConnectionProperties(java.util.Properties properties)
Sets
Properties for this clustered client's connection. |
ClusteredDatasetManagerBuilder |
withConnectionTimeout(long timeout,
java.util.concurrent.TimeUnit unit)
Configures this
DatasetManager to use a specific connection timeout. |
ClusteredDatasetManagerBuilder |
withReconnectTimeout(long timeout,
java.util.concurrent.TimeUnit unit)
Configures this
DatasetManager to use the specific reconnect timeout. |
static final long DEFAULT_CONNECTION_TIMEOUT_MS
static final long DEFAULT_RECONNECT_TIMEOUT_MS
DatasetManager build() throws StoreException
StoreException
- if the creation of the DatasetManager failsClusteredDatasetManagerBuilder withConnectionTimeout(long timeout, java.util.concurrent.TimeUnit unit)
DatasetManager
to use a specific connection timeout.
The default timeout is given by DEFAULT_CONNECTION_TIMEOUT_MS
.
timeout
- connection timeoutunit
- connection timeout unitClusteredDatasetManagerBuilder
to allow further configurationClusteredDatasetManagerBuilder withReconnectTimeout(long timeout, java.util.concurrent.TimeUnit unit)
DatasetManager
to use the specific reconnect timeout.
This is used, instead of the withConnectionTimeout(long, java.util.concurrent.TimeUnit)
value when attempting
to reconnect to a server following discovery of a dropped connection.
The default timeout is given by DEFAULT_RECONNECT_TIMEOUT_MS
. A
value of zero indicates reconnection attempts do not time out.
timeout
- reconnect timeoutunit
- reconnect timeout unitClusteredDatasetManagerBuilder
to allow further configurationClusteredDatasetManagerBuilder withConnectionProperties(java.util.Properties properties)
Properties
for this clustered client's connection.properties
- the clustered client's connection propertiesClusteredDatasetManagerBuilder
to allow further configurationClusteredDatasetManagerBuilder withClientAlias(java.lang.String alias)
alias
- the clustered client's aliasClusteredDatasetManagerBuilder
to allow further configurationdefault ClusteredDatasetManagerBuilder withClientTags(java.lang.String... tags)
tags
- a list of tagsClusteredDatasetManagerBuilder
to allow further configurationClusteredDatasetManagerBuilder withClientTags(java.util.Set<java.lang.String> tags)
tags
- a list of tagsClusteredDatasetManagerBuilder
to allow further configuration