104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# File 'lib/nats/io/jetstream/api.rb', line 104
ConsumerConfig = Struct.new(:name, :durable_name, :description,
:deliver_policy, :opt_start_seq, :opt_start_time,
:ack_policy, :ack_wait, :max_deliver, :backoff,
:filter_subject, :replay_policy, :rate_limit_bps,
:sample_freq, :max_waiting, :max_ack_pending,
:flow_control, :idle_heartbeat, :headers_only,
:max_batch, :max_expires,
:deliver_subject, :deliver_group,
:inactive_threshold,
:num_replicas,
:mem_storage,
keyword_init: true) do
def initialize(opts={})
rem = opts.keys - members
opts.delete_if { |k| rem.include?(k) }
super(opts)
end
end
|