Class/Object

github.gphat.censorinus

Client

Related Docs: object Client | package censorinus

Permalink

class Client extends AnyRef

A Censorinus client! You should create one of these and reuse it across your application.

If maxBatchSize is defined, metrics will be batched before being sent to sender. The maxBatchSize param controls the maximum size of the ByteBuffers sent to sender. This should generally be smaller than the maximum allowable size of UDP packets on the system.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Client
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(encoder: MetricEncoder, sender: MetricSender, prefix: String = "", defaultSampleRate: Double = 1.0, asynchronous: Boolean = true, maxQueueSize: Option[Int] = None, consecutiveDropWarnThreshold: Long = 1000, consecutiveDroppedMetrics: AtomicLong = new AtomicLong(0), maxBatchSize: Option[Int] = None)

    Permalink

    Creates a new client instance

    Creates a new client instance

    encoder

    The MetricEncoder implementation this client will use

    sender

    The MetricSender implementation this client will use

    prefix

    A prefix to add to all metric names. A period will be added to the end, resulting in prefix.metricname.

    defaultSampleRate

    A sample rate default to be used for all metric methods. Defaults to 1.0

    asynchronous

    True if you want the client to asynch, false for blocking!

    maxQueueSize

    Maximum amount of metrics allowed to be queued at a time.

    maxBatchSize

    maximum size of byte buffer supplied to sender

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. val consecutiveDroppedMetrics: AtomicLong

    Permalink
  7. val defaultSampleRate: Double

    Permalink

    A sample rate default to be used for all metric methods.

    A sample rate default to be used for all metric methods. Defaults to 1.0

  8. def enqueue(metric: Metric, sampleRate: Double = defaultSampleRate, bypassSampler: Boolean = false): Unit

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def makeName(name: String): String

    Permalink
    Attributes
    protected
  15. val maxBatchSize: Option[Int]

    Permalink

    maximum size of byte buffer supplied to sender

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. def shutdown(): Unit

    Permalink

    Explicitly shut down the client and it's underlying bits.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped