Class LatencyMetricsEvent<I extends LatencyMetricsIdentifier>
- java.lang.Object
-
- com.couchbase.client.core.event.metrics.LatencyMetricsEvent<I>
-
- All Implemented Interfaces:
CouchbaseEvent
- Direct Known Subclasses:
NetworkLatencyMetricsEvent
public abstract class LatencyMetricsEvent<I extends LatencyMetricsIdentifier> extends Object implements CouchbaseEvent
A common base class for latency metric events.- Since:
- 1.2.0
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description LatencyMetricsEvent(Map<I,LatencyMetric> latencies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<I,LatencyMetric>
latencies()
Returns all latency metrics per unique identifier.String
toString()
EventType
type()
The type of the event.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.couchbase.client.core.event.CouchbaseEvent
toMap
-
-
-
-
Constructor Detail
-
LatencyMetricsEvent
public LatencyMetricsEvent(Map<I,LatencyMetric> latencies)
-
-
Method Detail
-
latencies
public Map<I,LatencyMetric> latencies()
Returns all latency metrics per unique identifier.
-
type
public EventType type()
Description copied from interface:CouchbaseEvent
The type of the event.- Specified by:
type
in interfaceCouchbaseEvent
- Returns:
- the event type.
-
-