class EventMachine::Bucketer::Ordered::InMemory

Constants

BUCKET_MAX_AGE_DEFAULT
BUCKET_THRESHOLD_SIZE_DEFAULT

Public Class Methods

new(bucket_threshold_size: BUCKET_THRESHOLD_SIZE_DEFAULT, bucket_max_age: BUCKET_MAX_AGE_DEFAULT) click to toggle source

Creates a new in memory Bucketer with the requested configurations

@param bucket_threshold_size [Integer] the max size of the bucket after which the on_bucket_full callback is called @param bucket_max_age [Integer] max number of seconds a bucket can remain before the on_bucket_timed_out is called

# File lib/em-bucketer/ordered/in_memory.rb, line 20
def initialize(bucket_threshold_size: BUCKET_THRESHOLD_SIZE_DEFAULT, bucket_max_age: BUCKET_MAX_AGE_DEFAULT)
  setup(bucket_threshold_size, bucket_max_age)
  setup_db
end