public static class KeyValuePurgeOptions.Builder
extends java.lang.Object
new KeyValuePurgeOptions.Builder().build() will create a new KeyValuePurgeOptions.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
KeyValuePurgeOptions |
build()
Build the Key Value Purge Options
|
KeyValuePurgeOptions.Builder |
deleteMarkersNoThreshold()
Set the delete marker threshold to -1 so as to not keep any markers
|
KeyValuePurgeOptions.Builder |
deleteMarkersThreshold(java.time.Duration deleteMarkersThreshold)
Set the delete marker threshold.
|
KeyValuePurgeOptions.Builder |
deleteMarkersThreshold(long deleteMarkersThresholdMillis)
Set the delete marker threshold.
|
public KeyValuePurgeOptions.Builder deleteMarkersThreshold(java.time.Duration deleteMarkersThreshold)
KeyValuePurgeOptions.DEFAULT_THRESHOLD_MILLIS
Duration less than zero will assume no threshold and will not keep any markers.deleteMarkersThreshold - the threshold duration or nullpublic KeyValuePurgeOptions.Builder deleteMarkersThreshold(long deleteMarkersThresholdMillis)
KeyValuePurgeOptions.DEFAULT_THRESHOLD_MILLIS
Less than zero will assume no threshold and will not keep any markers.deleteMarkersThresholdMillis - the threshold millispublic KeyValuePurgeOptions.Builder deleteMarkersNoThreshold()
public KeyValuePurgeOptions build()