Class PollingStrategy
java.lang.Object
com.cumulocity.sdk.client.polling.PollingStrategy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPollingStrategy(Long timeout, TimeUnit timeUnit, Long... pollIntervals) PollingStrategy(Long timeout, TimeUnit timeUnit, List<Long> pollIntervals) PollingStrategy(TimeUnit timeUnit, List<Long> pollIntervals) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()booleanpeakNext()get next polling intervalpopNext()get and remove next polling intervalvoidsetRepeatLast(boolean repeatLast)
-
Field Details
-
DEFAULT_POLL_CREDENTIALS_TIMEOUT
-
DEFAULT_POLL_INTERVALS
-
-
Constructor Details
-
PollingStrategy
public PollingStrategy() -
PollingStrategy
-
PollingStrategy
-
PollingStrategy
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
peakNext
get next polling interval- Returns:
- interval in milliseconds
-
popNext
get and remove next polling interval- Returns:
- interval
-
getTimeout
- Returns:
- timeout
-
isRepeatLast
public boolean isRepeatLast() -
setRepeatLast
public void setRepeatLast(boolean repeatLast)
-