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 |
|---|---|
@NonNull StreamConfiguration |
getBackingConfig()
Gets the stream configuration for the stream which backs the bucket
|
@NonNull java.lang.String |
getBucketName()
Gets the name of this bucket.
|
@Nullable java.lang.String |
getDescription()
Gets the description of this bucket.
|
long |
getMaxBucketSize()
Gets the maximum number of bytes for this bucket.
|
@Nullable java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Get the metadata for the feature
|
@Nullable 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.
|
@Nullable StorageType |
getStorageType()
Gets the storage type for this bucket.
|
@Nullable java.time.Duration |
getTtl()
Gets the maximum age for a value in this bucket.
|
boolean |
isCompressed()
Gets the state of compression
|
@NonNull java.lang.String |
toJson() |
@NonNull JsonValue |
toJsonValue() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserializeprotected 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 @NonNull java.lang.String toJson()
toJson in interface JsonSerializablepublic @NonNull JsonValue toJsonValue()
toJsonValue in interface JsonSerializablepublic @NonNull StreamConfiguration getBackingConfig()
public @NonNull java.lang.String getBucketName()
public @Nullable java.lang.String getDescription()
public long getMaxBucketSize()
public @Nullable java.time.Duration getTtl()
public @Nullable StorageType getStorageType()
public int getReplicas()
public @Nullable Placement getPlacement()
public boolean isCompressed()
public @Nullable java.util.Map<java.lang.String,java.lang.String> getMetadata()