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.
|
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.
|
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.
|
java.util.List<Source> |
getSources()
The sources for this stream
|
StorageType |
getStorageType()
Gets the storate 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() |
public java.lang.String toJson()
toJson
in interface JsonSerializable
public java.lang.String getName()
public java.util.List<java.lang.String> getSubjects()
public DiscardPolicy getDiscardPolicy()
public RetentionPolicy getRetentionPolicy()
public long getMaxConsumers()
public long getMaxMsgs()
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 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