Package

com.twitter.util

events

Permalink

package events

Visibility
  1. Public
  2. All

Type Members

  1. case class Event(etype: Type, when: Time, longVal: Long = Event.NoLong, objectVal: AnyRef = Event.NoObject, doubleVal: Double = Event.NoDouble, traceIdVal: Long = Event.NoTraceId, spanIdVal: Long = Event.NoSpanId) extends Product with Serializable

    Permalink

    A somewhat flexible schema representing various event types.

    A somewhat flexible schema representing various event types.

    when

    when the event happened.

    longVal

    should be Event.NoLong if there is no supplied value.

    objectVal

    should be Event.NoObject if there is no supplied value.

    doubleVal

    should be Event.NoDouble if there is no supplied value.

    traceIdVal

    should be Event.NoTraceId if there is no supplied value.

    spanIdVal

    should be Event.NoSpanId if there is no supplied value.

  2. final class Events extends AnyRef

    Permalink
  3. trait Sink extends AnyRef

    Permalink

    Where runtime events such as logging, stats and tracing can be sent to allow for analysis.

    Where runtime events such as logging, stats and tracing can be sent to allow for analysis.

    Note: while the API is public it should be considered as experimental and subject to changes.

    Design notes
    • Implementations must be thread-safe.
    • Implementations should have very low runtime overhead such that as many events as possible can be sent here. In particular, object allocations should be kept to a minimum.
    • event is expected to be called many orders of magnitude more frequently than events.
  4. final class Sinks extends AnyRef

    Permalink
  5. class SizedSink extends Sink

    Permalink

    An in-memory circular buffer of events.

    An in-memory circular buffer of events. When capacity is reached, new writes via event do not block, rather they overwrite the oldest event.

    This class is thread-safe and effort is taken to keep object allocations from calls to event to a minimum.

Value Members

  1. object Event extends Serializable

    Permalink

    Note: There is a Java-friendly API for this object: com.twitter.util.events.Events.

  2. object Sink

    Permalink

    Note: There is a Java-friendly API for this object: com.twitter.util.events.Sinks.

  3. object SizedSink

    Permalink

Ungrouped