struct NATS::JetStream::Consumers
- NATS::JetStream::Consumers
- Struct
- Value
- Object
Overview
A NATS JetStream consumer is a message index sourced from a stream. It can apply additional filters and records which messages are pending, acknowledged, etc, at the consumer layer.
Defined in:
jetstream/consumers.crConstructors
Instance Method Summary
-
#create(stream_name : String, deliver_policy : ConsumerConfig::DeliverPolicy = :all, ack_policy : ConsumerConfig::AckPolicy = :explicit, **properties) : Consumer
Create a consumer for the given stream with the given properties, which are passed unmodified to
NATS::JetStream::Consumer.new
. -
#delete(stream : JetStream::Stream, consumer : JetStream::Consumer)
Delete the given consumer for the given stream
-
#delete(stream : String, consumer : String)
Delete the consumer with the given name associated with the stream with the given name.
-
#delete(consumer : JetStream::Consumer)
Delete the given consumer for the given stream
- #info(stream_name : String, name : String) : Consumer | Nil
-
#info(stream_name : String, name : String, &)
Return the consumer with the specified
name
associated with the given stream, yielding to the block if the consumer does not exist -
#info!(stream_name : String, name : String) : Consumer
Return the consumer with the specified
name
associated with the given stream, yielding to the block if the consumer does not exist -
#list(stream : JetStream::Stream)
Returns a paginated list of consumers for the specified stream.
-
#list(stream_name : String)
Returns a paginated list of consumers for the stream with the specified name.
Constructor Detail
Instance Method Detail
Create a consumer for the given stream with the given properties,
which are passed unmodified to NATS::JetStream::Consumer.new
.
Delete the given consumer for the given stream
Delete the consumer with the given name associated with the stream with the given name.
Return the consumer with the specified name
associated with the
given stream, yielding to the block if the consumer does not exist
Return the consumer with the specified name
associated with the
given stream, yielding to the block if the consumer does not exist
Returns a paginated list of consumers for the specified stream.
Returns a paginated list of consumers for the stream with the specified name.