public abstract class FeatureConfiguration extends java.lang.Object implements JsonSerializable
Modifier and Type | Class and Description |
---|---|
protected static class |
FeatureConfiguration.Builder<B,FC> |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
bucketName |
protected static CompressionOption |
JS_COMPRESSION_NO |
protected static CompressionOption |
JS_COMPRESSION_YES |
protected StreamConfiguration |
sc |
Constructor and Description |
---|
FeatureConfiguration(StreamConfiguration sc,
java.lang.String bucketName) |
Modifier and Type | Method and Description |
---|---|
StreamConfiguration |
getBackingConfig()
Gets the stream configuration for the stream which backs the bucket
|
java.lang.String |
getBucketName()
Gets the name of this bucket.
|
java.lang.String |
getDescription()
Gets the description of this bucket.
|
long |
getMaxBucketSize()
Gets the maximum number of bytes for this bucket.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Get the metadata for the feature
|
Placement |
getPlacement()
Placement directives to consider when placing replicas of this stream,
random placement when unset
|
int |
getReplicas()
Gets the number of replicas for this bucket.
|
StorageType |
getStorageType()
Gets the storage type for this bucket.
|
java.time.Duration |
getTtl()
Gets the maximum age for a value in this bucket.
|
boolean |
isCompressed()
Gets the state of compression
|
java.lang.String |
toJson() |
JsonValue |
toJsonValue() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serialize
protected static final CompressionOption JS_COMPRESSION_YES
protected static final CompressionOption JS_COMPRESSION_NO
protected final StreamConfiguration sc
protected final java.lang.String bucketName
public FeatureConfiguration(StreamConfiguration sc, java.lang.String bucketName)
public java.lang.String toJson()
toJson
in interface JsonSerializable
public JsonValue toJsonValue()
toJsonValue
in interface JsonSerializable
public StreamConfiguration getBackingConfig()
public java.lang.String getBucketName()
public java.lang.String getDescription()
public long getMaxBucketSize()
public java.time.Duration getTtl()
public StorageType getStorageType()
public int getReplicas()
public Placement getPlacement()
public boolean isCompressed()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()