struct NATS::JetStream::StreamConfig

Defined in:

jetstream/stream_config.cr

Constructors

Instance Method Summary

Constructor methods inherited from struct NATS::JetStream::Entity

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
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 = 1, retention : RetentionPolicy | Nil = nil, allow_rollup_headers : Bool | Nil = nil, deny_delete : Bool | Nil = nil, allow_direct : Bool | Nil = nil, mirror_direct : Bool | Nil = nil, republish : NATS::JetStream::StreamConfig::Republish | Nil = nil, placement : NATS::JetStream::StreamConfig::Placement | Nil = nil, mirror : NATS::JetStream::StreamSource | Nil = nil, sources : Nil | Array(NATS::JetStream::StreamSource) = nil, discard_new_per_subject : Bool | Nil = nil, discard : DiscardPolicy | Nil = nil, storage : Storage = :file) #

[View source]

Instance Method Detail

def allow_direct? : Bool | Nil #

[View source]
def allow_rollup_headers? : Bool | Nil #

[View source]
def deny_delete? : Bool | Nil #

[View source]
def deny_purge? : Bool | Nil #

[View source]
def description : String | Nil #

[View source]
def discard : DiscardPolicy | Nil #

[View source]
def discard_new_per_subject? : Bool | Nil #

[View source]
def duplicate_window : Time::Span | Nil #

[View source]
def max_age : Time::Span | Nil #

[View source]
def max_bytes : Int64 | Nil #

[View source]
def max_consumers : Int32 | Nil #

[View source]
def max_msg_size : Int32 | Nil #

[View source]
def max_msgs : Int64 | Nil #

[View source]
def max_msgs_per_subject : Int64 | Nil #

[View source]
def mirror : StreamSource | Nil #

[View source]
def mirror_direct? : Bool | Nil #

[View source]
def name : String #

Name of this stream


[View source]
def no_ack? : Bool | Nil #

[View source]
def placement : Placement | Nil #

[View source]
def replicas : Int32 #

[View source]
def republish : Republish | Nil #

[View source]
def retention : RetentionPolicy | Nil #

[View source]
def sealed? : Bool | Nil #

[View source]
def sources : Array(StreamSource) #

[View source]
def storage : Storage #

[View source]
def subjects : Array(String) #

Which subjects this stream will listen for.


[View source]