public class Limit
extends java.lang.Object
psdi.mnet.MessageService
Constructor and Description |
---|
Limit(int max)
Construct with the specified limit.
|
Modifier and Type | Method and Description |
---|---|
boolean |
atMax()
Returns true when count >= max.
|
void |
dec()
Decrements the internal count variable.
|
int |
getCount()
Get's the current count.
|
int |
getMax()
Get the upper limit.
|
void |
inc()
Increments the internal count variable.
|
void |
setMax(int value)
Sets the maximum value that
limit will increment to.
|
public void setMax(int value)
value
- public int getMax()
public int getCount()
public boolean atMax()
public void inc()
public void dec()