S - a type of IStats object.public class EntryCountLimitedOnDemandStatsProducer<S extends IStats> extends OnDemandStatsProducer<S>
CUMULATED_STATS_NAME| Constructor and Description |
|---|
EntryCountLimitedOnDemandStatsProducer(String aProducerId,
String aCategory,
String aSubsystem,
IOnDemandStatsFactory<S> aStatsFactory,
int aLimit) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLimit() |
protected String |
getProducerNameExtension() |
protected boolean |
limitForNewEntriesReached()
The getStats method checked whether the limit is reached before creating a new stat object.
|
void |
setLimit(int limit) |
String |
toString() |
getCachedStatsList, getCategory, getCreationInfo, getDefaultStats, getProducerId, getStats, getStats, getSubsystem, setTracingSupported, tracingSupportedpublic EntryCountLimitedOnDemandStatsProducer(String aProducerId, String aCategory, String aSubsystem, IOnDemandStatsFactory<S> aStatsFactory, int aLimit)
public int getLimit()
public void setLimit(int limit)
protected String getProducerNameExtension()
getProducerNameExtension in class OnDemandStatsProducer<S extends IStats>protected boolean limitForNewEntriesReached()
OnDemandStatsProducerlimitForNewEntriesReached in class OnDemandStatsProducer<S extends IStats>public String toString()
toString in class OnDemandStatsProducer<S extends IStats>Copyright © 2010-2017 anotheria.net. All Rights Reserved.