public abstract class FeatureConfiguration
extends java.lang.Object
implements io.nats.client.support.JsonSerializable
| Constructor and Description |
|---|
FeatureConfiguration(StreamConfiguration sc,
java.lang.String bucketName)
Construct a FeatureConfiguration from a StreamConfiguration and a bucket name
|
| 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 io.nats.client.support.JsonValue |
toJsonValue() |
public FeatureConfiguration(StreamConfiguration sc, java.lang.String bucketName)
sc - the StreamConfigurationbucketName - the bucket namepublic @NonNull java.lang.String toJson()
toJson in interface io.nats.client.support.JsonSerializablepublic @NonNull io.nats.client.support.JsonValue toJsonValue()
toJsonValue in interface io.nats.client.support.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()