public class FunctionPollConfig<S,T> extends PollConfig<S,T,FunctionPollConfig<S,T>>
NO_SENSOR, REMOVE, UNCHANGED
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)
Deprecated.
since 0.11.0; explicit groovy utilities/support will be deleted.
|
static FunctionPollConfig<?,java.lang.Void> |
forMultiple() |
static <T> FunctionPollConfig<?,T> |
forSensor(AttributeSensor<T> sensor) |
java.util.concurrent.Callable<? extends java.lang.Object> |
getCallable() |
<newS> FunctionPollConfig<newS,T> |
supplier(<any> val)
Supplies the value to be returned by each poll.
|
description, getDescription, getPeriod, period, period, period
checkSuccess, checkSuccess, enabled, equals, getCheckSuccess, getLogWarningGraceTime, getLogWarningGraceTimeOnStartup, getOnException, getOnFailure, getOnSuccess, getSensor, getSupressDuplicates, hasCheckSuccessHandler, hasExceptionHandler, hasFailureHandler, hashCode, hasSuccessHandler, isEnabled, logWarningGraceTime, logWarningGraceTimeOnStartup, onException, onFailure, onFailureOrException, onResult, onSuccess, setOnException, setOnFailure, setOnFailureOrException, setOnResult, setOnSuccess, suppressDuplicates, toString
public FunctionPollConfig(AttributeSensor<T> sensor)
public FunctionPollConfig(FunctionPollConfig<S,T> other)
public static <T> FunctionPollConfig<?,T> forSensor(AttributeSensor<T> sensor)
public static FunctionPollConfig<?,java.lang.Void> forMultiple()
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(<any> 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.
@Deprecated public FunctionPollConfig<S,T> closure(groovy.lang.Closure<?> val)