struct NATS::JetStream::API::V1::StreamConfig
- NATS::JetStream::API::V1::StreamConfig
- NATS::JetStream::API::Message
- Struct
- Value
- Object
Defined in:
jetstream.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : String, subjects : Nil | Array(String) = nil, description : Nil | String = nil, max_age : Time::Span | Nil = nil, max_bytes : Int64 | Nil = nil, max_msg_size : Int32 | Nil = nil, max_msgs : Int64 | Nil = nil, max_msgs_per_subject : Int64 | Nil = nil, max_consumers : Int32 | Nil = nil, no_ack : Bool | Nil = false, replicas : Int32 | Nil = nil, retention : RetentionPolicy | Nil = nil, allow_rollup_headers : Bool | Nil = nil, deny_delete : Bool | Nil = nil, allow_direct : Bool | Nil = nil, republish : NATS::JetStream::API::V1::StreamConfig::Republish | Nil = nil, placement : NATS::JetStream::API::V1::StreamConfig::Placement | Nil = nil, mirror : NATS::JetStream::API::V1::StreamSource | Nil = nil, sources : Nil | Array(NATS::JetStream::API::V1::StreamSource) = nil, discard : DiscardPolicy | Nil = nil, storage : Storage = :file)
Instance Method Summary
- #allow_direct? : Bool | Nil
- #allow_rollup_headers? : Bool | Nil
- #deny_delete? : Bool | Nil
- #deny_purge? : Bool | Nil
- #description : String | Nil
- #discard : DiscardPolicy | Nil
- #duplicate_window : Time::Span | Nil
- #max_age : Time::Span | Nil
- #max_bytes : Int64 | Nil
- #max_consumers : Int32 | Nil
- #max_msg_size : Int32 | Nil
- #max_msgs : Int64 | Nil
- #max_msgs_per_subject : Int64 | Nil
- #mirror : StreamSource | Nil
-
#name : String
Name of this stream
- #no_ack? : Bool | Nil
- #placement : Placement | Nil
- #replicas : Int32 | Nil
- #republish : Republish | Nil
- #retention : RetentionPolicy | Nil
- #sealed? : Bool | Nil
- #sources : Array(StreamSource)
- #storage : Storage
-
#subjects : Array(String)
Which subjects this stream will listen for.
Constructor methods inherited from struct NATS::JetStream::API::Message
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(name : String, subjects : Nil | Array(String) = nil, description : Nil | String = nil, max_age : Time::Span | Nil = nil, max_bytes : Int64 | Nil = nil, max_msg_size : Int32 | Nil = nil, max_msgs : Int64 | Nil = nil, max_msgs_per_subject : Int64 | Nil = nil, max_consumers : Int32 | Nil = nil, no_ack : Bool | Nil = false, replicas : Int32 | Nil = nil, retention : RetentionPolicy | Nil = nil, allow_rollup_headers : Bool | Nil = nil, deny_delete : Bool | Nil = nil, allow_direct : Bool | Nil = nil, republish : NATS::JetStream::API::V1::StreamConfig::Republish | Nil = nil, placement : NATS::JetStream::API::V1::StreamConfig::Placement | Nil = nil, mirror : NATS::JetStream::API::V1::StreamSource | Nil = nil, sources : Nil | Array(NATS::JetStream::API::V1::StreamSource) = nil, discard : DiscardPolicy | Nil = nil, storage : Storage = :file)
#