View Source ZenMonitor.Proxy.Batcher.State (ZenMonitor v2.0.1)

Maintains the internal state for the Batcher

  • subscriber is the process that death_certificates should be delivered to
  • batch is the queue of death_certificates pending until the next sweep.
  • length is the current length of the batch queue (calculating queue length is an O(n) operation, is is simple to track it as elements are added / removed)

Link to this section Summary

Link to this section Types

Specs

t() :: %ZenMonitor.Proxy.Batcher.State{
  batch: :queue.queue(),
  length: integer(),
  subscriber: pid()
}