public class MCountWithDelay extends MCount
MCountWithDelay class.
jmxFixName, jmxName, jmxPackage, jmxType| Constructor and Description |
|---|
MCountWithDelay()
Constructor for MCountWithDelay.
|
MCountWithDelay(String name)
Constructor for MCountWithDelay.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getSleepInterval()
Getter for the field
sleepInterval. |
int |
getSleepSeconds()
Getter for the field
sleepSeconds. |
void |
inc()
inc.
|
boolean |
isThrowExceptionOnNextCount()
isThrowExceptionOnNextCount.
|
void |
setSleepInterval(long sleepInterval)
Setter for the field
sleepInterval. |
void |
setSleepSeconds(int sleepSeconds)
Setter for the field
sleepSeconds. |
void |
setThrowExceptionOnNextCount(boolean throwExceptionOnNextCount)
Setter for the field
throwExceptionOnNextCount. |
close, finalize, getFirstHitTime, getHitsPerSecond, getLastHitTime, getName, getStatusAsString, getValue, reset, toStringjmxRegistercreateJmxObjectName, getJmxName, getJmxObjectName, getJmxPackage, getJmxType, isJmxFixName, isJmxRegistered, setJmxName, setJmxPackage, setJmxProxy, setJmxRegisteredbase, base, createBase, forkBase, installBase, isBase, leaveBasepublic long getSleepInterval()
Getter for the field sleepInterval.
public void setSleepInterval(long sleepInterval)
Setter for the field sleepInterval.
sleepInterval - a long.public int getSleepSeconds()
Getter for the field sleepSeconds.
public void setSleepSeconds(int sleepSeconds)
Setter for the field sleepSeconds.
sleepSeconds - a int.public boolean isThrowExceptionOnNextCount()
isThrowExceptionOnNextCount.
public void setThrowExceptionOnNextCount(boolean throwExceptionOnNextCount)
Setter for the field throwExceptionOnNextCount.
throwExceptionOnNextCount - a boolean.Copyright © 2016. All Rights Reserved.