public class PollingStrategy extends Object
Modifier and Type | Field and Description |
---|---|
static Long |
DEFAULT_POLL_CREDENTIALS_TIMEOUT |
static Long[] |
DEFAULT_POLL_INTERVALS |
Constructor and Description |
---|
PollingStrategy() |
PollingStrategy(Long timeout,
TimeUnit timeUnit,
List<Long> pollIntervals) |
PollingStrategy(Long timeout,
TimeUnit timeUnit,
Long... pollIntervals) |
PollingStrategy(TimeUnit timeUnit,
List<Long> pollIntervals) |
Modifier and Type | Method and Description |
---|---|
Long |
getTimeout() |
boolean |
isEmpty() |
boolean |
isRepeatLast() |
Long |
peakNext()
get next polling interval
|
Long |
popNext()
get and remove next polling interval
|
void |
setRepeatLast(boolean repeatLast) |
public static final Long DEFAULT_POLL_CREDENTIALS_TIMEOUT
public static final Long[] DEFAULT_POLL_INTERVALS
public boolean isEmpty()
public Long peakNext()
public Long popNext()
public Long getTimeout()
public boolean isRepeatLast()
public void setRepeatLast(boolean repeatLast)
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.