public class OAThrottle extends Object
Constructor and Description |
---|
OAThrottle(long msDelay) |
Modifier and Type | Method and Description |
---|---|
boolean |
check()
This will check to see if the the required delay/time has passed since the last call to check.
|
long |
getCheckCount() |
long |
getCount() |
long |
getDelay() |
long |
getLastThrottle()
Returns the last time that a call to check() returned true.
|
long |
now() |
void |
reset()
sets throttle counter and last valid check time to 0L.
|
void |
setDelay(long msDelay) |
public void setDelay(long msDelay)
public long getDelay()
public boolean check()
public long now()
public void reset()
public long getCheckCount()
public long getCount()
public long getLastThrottle()
Copyright © 1999–2019 ViaOA. All rights reserved.