public class SessionCounterInterval extends EventCounterInterval
Interval for use by SessionCounter.events| Constructor and Description |
|---|
SessionCounterInterval() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int inCount)
Registers the occurrence of n new events.
|
SessionCounterInterval |
copy(SessionCounterInterval inFrom)
Copies the state of the
Interval argument into this
SessionCounterInterval. |
long |
getConcurrency()
Gets the number of concurrent events underway at the present time.
|
long |
getPeakConcurrency()
Gets the maximum concurrency level observed during this interval.
|
void |
remove(int inCount)
Remove a number of sessions
|
String |
toString()
Summarizes this
Interval as a String for display purposes. |
copy, getCumulativeEvents, getDuration, getEventRatePerSecond, getEvents, getStartTime, intervalsBefore, isPast, setClosedpublic long getPeakConcurrency()
public SessionCounterInterval copy(SessionCounterInterval inFrom)
Interval argument into this
SessionCounterInterval.inFrom - - SessionCounterInterval to be copiedpublic long getConcurrency()
public void add(int inCount)
Intervaladd in interface Intervaladd in class EventCounterIntervalinCount - number of events to be countedpublic void remove(int inCount)
inCount - - number of sessions to be removedpublic String toString()
EventCounterIntervalInterval as a String for display purposes.toString in class EventCounterIntervalCopyright © 2015. All rights reserved.