Class: Statsd::Batch

Inherits:
Base
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/statsd.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#counter, #host, #namespace, #port

Instance Method Summary collapse

Methods inherited from Base

#count, #decrement, #gauge, #increment, #send_to_socket, #time, #timing

Constructor Details

#initialize(statsd, batch_size) ⇒ Batch

Returns a new instance of Batch.



100
101
102
103
104
# File 'lib/statsd.rb', line 100

def initialize(statsd, batch_size)
  @batch_size = batch_size
  @namespace  = statsd.namespace
  @reporter   = Statsd::Reporter.new(statsd, batch_size, pool_size)
end

Instance Attribute Details

#batch_sizeObject

Returns the value of attribute batch_size.



97
98
99
# File 'lib/statsd.rb', line 97

def batch_size
  @batch_size
end

#pool_sizeObject

Returns the value of attribute pool_size.



97
98
99
# File 'lib/statsd.rb', line 97

def pool_size
  @pool_size
end