Class PollingStrategy
java.lang.Object
com.cumulocity.sdk.client.polling.PollingStrategy
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPollingStrategy
(Long timeout, TimeUnit timeUnit, Long... pollIntervals) PollingStrategy
(Long timeout, TimeUnit timeUnit, List<Long> pollIntervals) PollingStrategy
(TimeUnit timeUnit, List<Long> pollIntervals) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isEmpty()
boolean
peakNext()
get next polling intervalpopNext()
get and remove next polling intervalvoid
setRepeatLast
(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)
-