public abstract class ACounter extends Object implements ICounter
IMeasures
.
ICounter.Impl
Modifier and Type | Field and Description |
---|---|
protected long |
max |
protected IMeasures |
measures |
Constructor and Description |
---|
ACounter(IMeasures measures,
long limit) |
Modifier and Type | Method and Description |
---|---|
long |
getLimitValue() |
void |
init() |
boolean |
isMet() |
boolean |
isMet(long value) |
void |
overrideLimit(long newLimit) |
void |
update() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
currentValue
protected IMeasures measures
protected long max
public ACounter(IMeasures measures, long limit)
public boolean isMet(long value)
isMet
in interface LongCriterion
public final void overrideLimit(long newLimit)
overrideLimit
in interface ICounter
public long getLimitValue()
getLimitValue
in interface ICounter
Copyright © 2018. All rights reserved.