public class RollingCount
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Class and Description |
|---|---|
static interface |
RollingCount.IRollListener |
static class |
RollingCount.PeriodEnum
Used in call to GetValue to indicate whether the caller wants the
current value, the last value, or the top value.
|
static class |
RollingCount.RollTypeEnum
The type of rolling that occurred.
|
| Constructor and Description |
|---|
RollingCount() |
| Modifier and Type | Method and Description |
|---|---|
void |
AddRollListener(RollingCount.IRollListener listener) |
java.util.Calendar |
GetDate(RollingCount.RollTypeEnum rollType,
RollingCount.PeriodEnum period) |
long |
getLastHourValue() |
long |
getLastMinuteValue() |
long |
getThisHourValue() |
long |
getThisMinuteValue() |
long |
getTodayValue() |
java.util.Date |
getTopHour() |
long |
getTopHourValue() |
java.util.Date |
getTopMinute() |
long |
getTopMinuteValue() |
long |
getTotal() |
long |
GetValue(RollingCount.RollTypeEnum rollType,
RollingCount.PeriodEnum period) |
long |
getYesterdayValue() |
void |
Increment() |
void |
Initialize() |
void |
RemoveRollListener(RollingCount.IRollListener listener) |
void |
run()
Rolls all instances every second or so
|
static void |
Shutdown() |
public void run()
run in interface java.lang.Runnablepublic static void Shutdown()
public void Initialize()
public long getTotal()
public long getTopMinuteValue()
public java.util.Date getTopMinute()
public long getTopHourValue()
public java.util.Date getTopHour()
public long getThisHourValue()
public long getThisMinuteValue()
public long getLastHourValue()
public long getLastMinuteValue()
public long getYesterdayValue()
public long getTodayValue()
public void Increment()
public void AddRollListener(RollingCount.IRollListener listener)
public void RemoveRollListener(RollingCount.IRollListener listener)
public long GetValue(RollingCount.RollTypeEnum rollType, RollingCount.PeriodEnum period)
rollType - The rolltype to retrieve the data forperiod - The period to retrieve the data for.public java.util.Calendar GetDate(RollingCount.RollTypeEnum rollType, RollingCount.PeriodEnum period)
rollType - The rolltype to retrieve the date forperiod - The period to retrieve the date for.