protected abstract static class FeatureConfiguration.Builder<B,FC>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract FC |
build()
Builds the feature options.
|
protected B |
compression(boolean compression)
Sets whether to use compression for the configuration.
|
protected B |
description(java.lang.String description)
Sets the description of the store.
|
protected abstract B |
getThis() |
protected B |
maxBucketSize(long maxBucketSize)
Sets the maximum number of bytes in the configuration.
|
B |
metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Sets the metadata for the configuration
|
protected B |
name(java.lang.String name)
Sets the name of the store.
|
protected B |
placement(Placement placement)
Sets the placement directive object
|
protected B |
replicas(int replicas)
Sets the number of replicas a message must be stored on in the configuration.
|
protected B |
storageType(StorageType storageType)
Sets the storage type in the configuration.
|
protected B |
ttl(java.time.Duration ttl)
Sets the maximum age for a value in this configuration.
|
protected abstract B getThis()
protected B name(java.lang.String name)
name
- name of the store.protected B description(java.lang.String description)
description
- description of the store.protected B maxBucketSize(long maxBucketSize)
maxBucketSize
- the maximum number of bytesprotected B ttl(java.time.Duration ttl)
ttl
- the maximum ageprotected B storageType(StorageType storageType)
storageType
- the storage typeprotected B replicas(int replicas)
replicas
- the number of replicasprotected B placement(Placement placement)
placement
- the placement directive objectprotected B compression(boolean compression)
compression
- whether to use compression in the configurationpublic B metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata
- the metadata mappublic abstract FC build()