public class StreamConfiguration extends java.lang.Object implements JsonSerializable
Builder
.Modifier and Type | Class and Description |
---|---|
static class |
StreamConfiguration.Builder
StreamConfiguration is created using a Builder.
|
Modifier and Type | Method and Description |
---|---|
static StreamConfiguration.Builder |
builder()
Creates a builder for the stream configuration.
|
static StreamConfiguration.Builder |
builder(StreamConfiguration sc)
Creates a builder to copy the stream configuration.
|
boolean |
getAllowRollup()
Get the flag indicating whether or not the stream allows rollup.
|
boolean |
getDenyDelete()
Get the flag indicating whether or not deny delete is set for the stream
|
boolean |
getDenyPurge()
Get the flag indicating whether or not deny purge is set for the stream
|
java.lang.String |
getDescription()
Gets the description of this stream configuration.
|
DiscardPolicy |
getDiscardPolicy()
Gets the discard policy for this stream configuration.
|
java.time.Duration |
getDuplicateWindow()
Gets the duplicate checking window stream configuration.
|
java.time.Duration |
getMaxAge()
Gets the maximum message age for this stream configuration.
|
long |
getMaxBytes()
Gets the maximum number of bytes for this stream configuration.
|
long |
getMaxConsumers()
Gets the maximum number of consumers for this stream configuration.
|
long |
getMaxMsgs()
Gets the maximum messages for this stream configuration.
|
long |
getMaxMsgSize()
Gets the maximum message size for this stream configuration.
|
long |
getMaxMsgsPerSubject()
Gets the maximum messages for this stream configuration.
|
Mirror |
getMirror()
The mirror definition for this stream
|
java.lang.String |
getName()
Gets the name of this stream configuration.
|
boolean |
getNoAck()
Gets whether or not acknowledgements are required in this stream configuration.
|
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 stream configuration.
|
RetentionPolicy |
getRetentionPolicy()
Gets the retention policy for this stream configuration.
|
boolean |
getSealed()
Get the flag indicating whether or not the stream is sealed.
|
java.util.List<Source> |
getSources()
The sources for this stream
|
StorageType |
getStorageType()
Gets the storage type for this stream configuration.
|
java.util.List<java.lang.String> |
getSubjects()
Gets the subjects for this stream configuration.
|
java.lang.String |
getTemplateOwner()
Gets the template json for this stream configuration.
|
java.lang.String |
toJson()
Returns a JSON representation of this consumer configuration.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
serialize
public java.lang.String toJson()
toJson
in interface JsonSerializable
public java.lang.String getName()
public java.lang.String getDescription()
public java.util.List<java.lang.String> getSubjects()
public DiscardPolicy getDiscardPolicy()
public RetentionPolicy getRetentionPolicy()
public long getMaxConsumers()
public long getMaxMsgs()
public long getMaxMsgsPerSubject()
public long getMaxBytes()
public java.time.Duration getMaxAge()
public long getMaxMsgSize()
public StorageType getStorageType()
public int getReplicas()
public boolean getNoAck()
public java.lang.String getTemplateOwner()
public java.time.Duration getDuplicateWindow()
public Placement getPlacement()
public Mirror getMirror()
public java.util.List<Source> getSources()
public boolean getSealed()
public boolean getAllowRollup()
public boolean getDenyDelete()
public boolean getDenyPurge()
public java.lang.String toString()
toString
in class java.lang.Object
public static StreamConfiguration.Builder builder()
public static StreamConfiguration.Builder builder(StreamConfiguration sc)
sc
- an existing StreamConfiguration