public static class ObjectStoreConfiguration.Builder extends FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>
new ObjectStoreConfiguration.Builder().build() will create a new ObjectStoreConfiguration.
name, scBuilder, ttl| Constructor and Description |
|---|
Builder()
Default Builder
|
Builder(ObjectStoreConfiguration osc)
Construct the builder by copying another configuration
|
Builder(java.lang.String name)
Builder accepting the object store bucket name.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectStoreConfiguration |
build()
Builds the ObjectStoreConfiguration
|
ObjectStoreConfiguration.Builder |
compression(boolean compression)
Sets whether to use compression for the ObjectStoreConfiguration.
|
ObjectStoreConfiguration.Builder |
description(java.lang.String description)
Sets the description of the store.
|
protected ObjectStoreConfiguration.Builder |
getThis() |
ObjectStoreConfiguration.Builder |
maxBucketSize(long maxBucketSize)
Sets the maximum number of bytes in the ObjectStoreConfiguration.
|
ObjectStoreConfiguration.Builder |
metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Sets the metadata for the ObjectStoreConfiguration
|
ObjectStoreConfiguration.Builder |
name(java.lang.String name)
Sets the name of the store.
|
ObjectStoreConfiguration.Builder |
placement(Placement placement)
Sets the placement directive object
|
ObjectStoreConfiguration.Builder |
replicas(int replicas)
Sets the number of replicas a message must be stored on in the ObjectStoreConfiguration.
|
ObjectStoreConfiguration.Builder |
storageType(StorageType storageType)
Sets the storage type in the ObjectStoreConfiguration.
|
ObjectStoreConfiguration.Builder |
ttl(java.time.Duration ttl)
Sets the maximum age for a value in this ObjectStoreConfiguration.
|
public Builder()
public Builder(java.lang.String name)
name - name of the store.public Builder(ObjectStoreConfiguration osc)
osc - the configuration to copyprotected ObjectStoreConfiguration.Builder getThis()
getThis in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>public ObjectStoreConfiguration.Builder name(java.lang.String name)
name in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>name - name of the store.public ObjectStoreConfiguration.Builder description(java.lang.String description)
description in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>description - description of the store.public ObjectStoreConfiguration.Builder maxBucketSize(long maxBucketSize)
maxBucketSize in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>maxBucketSize - the maximum number of bytespublic ObjectStoreConfiguration.Builder ttl(java.time.Duration ttl)
ttl in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>ttl - the maximum agepublic ObjectStoreConfiguration.Builder storageType(StorageType storageType)
storageType in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>storageType - the storage typepublic ObjectStoreConfiguration.Builder replicas(int replicas)
replicas in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>replicas - the number of replicaspublic ObjectStoreConfiguration.Builder placement(Placement placement)
placement in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>placement - the placement directive objectpublic ObjectStoreConfiguration.Builder compression(boolean compression)
compression in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>compression - whether to use compression in the ObjectStoreConfigurationpublic ObjectStoreConfiguration.Builder metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>metadata - the metadata mappublic ObjectStoreConfiguration build()
build in class FeatureConfiguration.Builder<ObjectStoreConfiguration.Builder,ObjectStoreConfiguration>