public static class BucketConfiguration.Builder
extends java.lang.Object
new BucketConfiguration.Builder().build() will create a new BucketConfiguration.
| Constructor and Description |
|---|
Builder()
Default Builder
|
Builder(BucketConfiguration bc)
Update Builder, useful if you need to update a configuration
|
| Modifier and Type | Method and Description |
|---|---|
BucketConfiguration |
build()
Builds the BucketConfiguration
|
BucketConfiguration.Builder |
duplicateWindow(java.time.Duration window)
Sets the duplicate checking window in the the BucketConfiguration.
|
BucketConfiguration.Builder |
duplicateWindow(long windowMillis)
Sets the duplicate checking window in the the BucketConfiguration.
|
BucketConfiguration.Builder |
maxBucketSize(long maxBucketSize)
Sets the maximum number of bytes in the BucketConfiguration.
|
BucketConfiguration.Builder |
maxHistory(long maxHistory)
Sets the maximum number of history for any one key.
|
BucketConfiguration.Builder |
maxValues(long maxValues)
Sets the maximum number of values across all keys, including history values in the BucketConfiguration.
|
BucketConfiguration.Builder |
maxValueSize(long maxValueSize)
Sets the maximum number of bytes for an individual value in the BucketConfiguration.
|
BucketConfiguration.Builder |
name(java.lang.String name)
Sets the name of the stream.
|
BucketConfiguration.Builder |
replicas(int replicas)
Sets the number of replicas a message must be stored on in the BucketConfiguration.
|
BucketConfiguration.Builder |
storageType(StorageType storageType)
Sets the storage type in the BucketConfiguration.
|
BucketConfiguration.Builder |
ttl(java.time.Duration ttl)
Sets the maximum for a value in this BucketConfiguration.
|
public Builder()
public Builder(BucketConfiguration bc)
bc - the configuration to copypublic BucketConfiguration.Builder name(java.lang.String name)
name - name of the stream.public BucketConfiguration.Builder maxValues(long maxValues)
maxValues - the maximum number of valuespublic BucketConfiguration.Builder maxHistory(long maxHistory)
maxHistory - the maximum number of messagespublic BucketConfiguration.Builder maxBucketSize(long maxBucketSize)
maxBucketSize - the maximum number of bytespublic BucketConfiguration.Builder maxValueSize(long maxValueSize)
maxValueSize - the maximum number of bytes for a valuepublic BucketConfiguration.Builder ttl(java.time.Duration ttl)
ttl - the maximum agepublic BucketConfiguration.Builder storageType(StorageType storageType)
storageType - the storage typepublic BucketConfiguration.Builder replicas(int replicas)
replicas - the number of replicas to store this message onpublic BucketConfiguration.Builder duplicateWindow(java.time.Duration window)
window - duration to hold message ids for duplicate checking.public BucketConfiguration.Builder duplicateWindow(long windowMillis)
windowMillis - duration to hold message ids for duplicate checking.public BucketConfiguration build()