Package

com.gilt.cavellc

batching

Permalink

package batching

Visibility
  1. Public
  2. All

Type Members

  1. class CaveBatchClient extends MetricsBatchClient with Loggable

    Permalink

    Simple batching of metrics for CAVE.

    Simple batching of metrics for CAVE.

    This class gathers raw metrics together, and sends to CAVE, as batches, in a timely fashion.

    The approach in this class is to collect metrics into collections, and when full, or a timer (based on the age of the first metric in the collection) expires, that batch is sent to CAVE.

    A minimal runtime impact is achieved by using a single Timer, and a single thread - the timer is used simply to schedule tasks to be executed on the thread, with the thread being used for all the work (interacting with CAVE, etc.).

    Note, each instance of this class builds its own batches, and delivers to CAVE individually - multiple instances will result in multiple batches, if this is so desired.

  2. trait CaveBatchConfiguration extends AnyRef

    Permalink

    Several configurations here around batching have reasonable default values.

  3. trait MetricsBatchClient extends AnyRef

    Permalink

Ungrouped