struct

NATS::Counter

Inherits Struct / Value / Object

Constructors

new(nats : Client)
Source

Instance methods

create(name : String, subjects : Array(String), storage : NATS::JetStream::StreamConfig::Storage = :file)
Source
decrement(subject, by delta : Int = 1) : BigInt
Source
decrement!(subject : String, by delta : Int = 1) : Nil
Source
get(subject : String) : BigInt
Source
increment(subject : String, by delta : Int = 1) : BigInt
Source
increment!(subject : String, by delta : Int = 1) : Nil
Source
reset(subject : String) : Nil
Source
set(subject : String, to value : Int) : Nil
Source

Nested types