NATS::JetStream::PullSubscription
Constructors
Instance methods
Acknowledge the given message and request the next in a single round trip to the server to save latency.
pull = js.pull_subscribe(consumer)
# Poll for messages until we get one
until msg = pull.fetch(timeout: 30.seconds)
end
loop do
end
Acknowledge the given message and request the next count messages in
a single round trip to the server to save latency.
consumer
Sourcefetch(timeout : Time::Span = 2.seconds)
Sourcefetch(message_count : Int, timeout : Time::Span = 2.seconds, no_wait : Bool = false, max_bytes : Int | Nil = nil) : Enumerable(Message)
Source