public final class PollInterval
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
PollInterval()
Creates an default poll interval.
|
Modifier and Type | Method and Description |
---|---|
long |
getAvgPollInterval()
Returns average poll interval value in seconds.
|
long |
getEntirePollInterval()
Returns entire poll interval value in seconds.
|
static PollInterval |
getInstance()
Returns the singleton PollInterval instance class for FlowStatisticService and other statistic services.
|
long |
getLongPollInterval()
Returns long poll interval value in seconds.
|
long |
getMidPollInterval()
Returns mid poll interval value in seconds.
|
long |
getPollInterval()
Returns default poll interval value in seconds.
|
void |
setEntirePollInterval(long newPollInterval)
Sets the entire poll interval in seconds.
|
void |
setLongPollInterval(long newPollInterval)
Sets the long poll interval in seconds.
|
void |
setMidPollInterval(long newPollInterval)
Sets the mid poll interval in seconds.
|
void |
setPollInterval(long newPollInterval)
Sets the poll interval in seconds.
|
public static PollInterval getInstance()
public void setPollInterval(long newPollInterval)
newPollInterval
- poll interval duration in secondspublic void setMidPollInterval(long newPollInterval)
newPollInterval
- poll interval duration in secondspublic void setLongPollInterval(long newPollInterval)
newPollInterval
- poll interval duration in secondspublic void setEntirePollInterval(long newPollInterval)
newPollInterval
- poll interval duration in secondspublic long getPollInterval()
public long getMidPollInterval()
public long getLongPollInterval()
public long getEntirePollInterval()
public long getAvgPollInterval()