Module: EventStore::HTTP::ReadStream::Defaults
- Defined in:
- lib/event_store/http/read_stream/defaults.rb
Class Method Summary collapse
Class Method Details
.batch_size ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/event_store/http/read_stream/defaults.rb', line 5 def self.batch_size batch_size = ENV['EVENT_STORE_HTTP_READ_BATCH_SIZE'] return batch_size.to_i if batch_size 20 end |
.direction ⇒ Object
13 14 15 |
# File 'lib/event_store/http/read_stream/defaults.rb', line 13 def self.direction :forward end |
.long_poll_duration ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/event_store/http/read_stream/defaults.rb', line 17 def self.long_poll_duration long_poll_duration = ENV['EVENT_STORE_HTTP_LONG_POLL_DURATION'] return long_poll_duration.to_i if long_poll_duration 2 end |
.position ⇒ Object
25 26 27 |
# File 'lib/event_store/http/read_stream/defaults.rb', line 25 def self.position 0 end |