com.netflix.servo.publish
Class PollCallable

java.lang.Object
  extended by com.netflix.servo.publish.PollCallable
All Implemented Interfaces:
java.util.concurrent.Callable<java.util.List<Metric>>

public final class PollCallable
extends java.lang.Object
implements java.util.concurrent.Callable<java.util.List<Metric>>

Callable implementation that invokes the MetricPoller.poll(com.netflix.servo.publish.MetricFilter) method.


Constructor Summary
PollCallable(MetricPoller poller, MetricFilter filter)
          Creates a new instance.
PollCallable(MetricPoller poller, MetricFilter filter, boolean reset)
          Creates a new instance.
 
Method Summary
 java.util.List<Metric> call()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollCallable

public PollCallable(MetricPoller poller,
                    MetricFilter filter)
Creates a new instance.

Parameters:
poller - poller to invoke
filter - filter to pass into the poller

PollCallable

public PollCallable(MetricPoller poller,
                    MetricFilter filter,
                    boolean reset)
Creates a new instance.

Parameters:
poller - poller to invoke
filter - filter to pass into the poller
reset - reset flag to pass into the poller
Method Detail

call

public java.util.List<Metric> call()

Specified by:
call in interface java.util.concurrent.Callable<java.util.List<Metric>>