com.hazelcast.internal.metrics
Interface LongProbe<S>
- Type Parameters:
S
- the type of the source object.
public interface LongProbe<S>
A function that provides a long value and can be used to create a metric using
MetricsRegistry.register(Object, String, LongProbe)
Method Summary |
long |
get(S source)
Gets the current value. |
get
long get(S source)
throws Exception
- Gets the current value.
- Parameters:
source
- the source
- Returns:
- the current value
- Throws:
Exception
- if something fails while getting the value.
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.