public static class ObjectStoreConfiguration.Builder
extends java.lang.Object
new ObjectStoreConfiguration.Builder().build()
will create a new ObjectStoreConfiguration.
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 |
description(java.lang.String description)
Sets the description of the store.
|
ObjectStoreConfiguration.Builder |
maxBucketSize(long maxBucketSize)
Sets the maximum number of bytes in 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 copypublic ObjectStoreConfiguration.Builder name(java.lang.String name)
name
- name of the store.public ObjectStoreConfiguration.Builder description(java.lang.String description)
description
- description of the store.public ObjectStoreConfiguration.Builder maxBucketSize(long maxBucketSize)
maxBucketSize
- the maximum number of bytespublic ObjectStoreConfiguration.Builder ttl(java.time.Duration ttl)
ttl
- the maximum agepublic ObjectStoreConfiguration.Builder storageType(StorageType storageType)
storageType
- the storage typepublic ObjectStoreConfiguration.Builder replicas(int replicas)
replicas
- the number of replicaspublic ObjectStoreConfiguration.Builder placement(Placement placement)
placement
- the placement directive objectpublic ObjectStoreConfiguration build()