public class FunctionPollConfig<S,T> extends PollConfig<S,T,FunctionPollConfig<S,T>>
NO_SENSOR, REMOVE, UNCHANGED, UNSET| Constructor and Description | 
|---|
FunctionPollConfig(AttributeSensor<T> sensor)  | 
FunctionPollConfig(FunctionPollConfig<S,T> other)  | 
| Modifier and Type | Method and Description | 
|---|---|
<newS> FunctionPollConfig<newS,T> | 
callable(java.util.concurrent.Callable<? extends newS> val)
The  
Callable to be invoked on each poll. | 
FunctionPollConfig<S,T> | 
closure(groovy.lang.Closure<?> val)  | 
static <T> FunctionPollConfig<?,T> | 
forSensor(AttributeSensor<T> sensor)  | 
java.util.concurrent.Callable<? extends java.lang.Object> | 
getCallable()  | 
<newS> FunctionPollConfig<newS,T> | 
supplier(com.google.common.base.Supplier<? extends newS> val)
Supplies the value to be returned by each poll. 
 | 
description, getDescription, getPeriod, period, period, periodcheckSuccess, checkSuccess, enabled, equals, getCheckSuccess, getOnException, getOnFailure, getOnSuccess, getSensor, getSupressDuplicates, hasCheckSuccessHandler, hasExceptionHandler, hasFailureHandler, hashCode, hasSuccessHandler, isEnabled, onException, onFailure, onFailureOrException, onResult, onSuccess, setOnException, setOnFailure, setOnFailureOrException, setOnResult, setOnSuccess, suppressDuplicates, toStringpublic FunctionPollConfig(AttributeSensor<T> sensor)
public FunctionPollConfig(FunctionPollConfig<S,T> other)
public static <T> FunctionPollConfig<?,T> forSensor(AttributeSensor<T> sensor)
public java.util.concurrent.Callable<? extends java.lang.Object> getCallable()
public <newS> FunctionPollConfig<newS,T> callable(java.util.concurrent.Callable<? extends newS> val)
Callable to be invoked on each poll.
 
 Note this must use generics, otherwise the return type of subsequent chained
 calls will (e.g. to FeedConfig.onException(com.google.common.base.Function) will
 return the wrong type.
public <newS> FunctionPollConfig<newS,T> supplier(com.google.common.base.Supplier<? extends newS> val)
 Note this must use generics, otherwise the return type of subsequent chained
 calls will (e.g. to FeedConfig.onException(com.google.common.base.Function) will
 return the wrong type.
public FunctionPollConfig<S,T> closure(groovy.lang.Closure<?> val)