protected abstract static class ActivityListener.ContinuousEvent<L extends ActivityListener,E> extends RegularListener.ContinuousEvent<L,E>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
identifier |
protected ActivityListener.Log |
log |
listener
Modifier | Constructor and Description |
---|---|
protected |
ContinuousEvent(L listener,
java.lang.String identifier,
long pause,
long window,
java.util.concurrent.TimeUnit unit) |
protected |
ContinuousEvent(L listener,
java.lang.String identifier,
TimeValue pause,
TimeValue window) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
formatElapsedTime(long delta,
long total) |
protected java.lang.String |
formatTimeComparison(long value,
long limit) |
protected void |
watchNotRunning()
Invoked when watch not running and about to start.
|
protected void |
watchRunningButEventsNotContinouous()
Invoked when watch running but events not continuous so about to be processed.
|
protected void |
watchTimeElapsedAndAboutToProcess(long delta)
Invoked when watch time elapsed and continuous events about to be processed.
|
protected void |
watchTimeNotElapsed(long delta)
Invoked when watch time not elapsed and about to wait for next event push.
|
flush, push
accept, continuous, pause, process, sequence, toString, toStringHelper, total, unit, window
protected final java.lang.String identifier
protected final ActivityListener.Log log
protected ContinuousEvent(L listener, java.lang.String identifier, long pause, long window, java.util.concurrent.TimeUnit unit)
protected java.lang.String formatElapsedTime(long delta, long total)
protected java.lang.String formatTimeComparison(long value, long limit)
protected void watchRunningButEventsNotContinouous()
AbstractListener.ContinuousEvent
watchRunningButEventsNotContinouous
in class AbstractListener.ContinuousEvent<E>
protected void watchNotRunning()
AbstractListener.ContinuousEvent
watchNotRunning
in class AbstractListener.ContinuousEvent<E>
protected void watchTimeNotElapsed(long delta)
AbstractListener.ContinuousEvent
watchTimeNotElapsed
in class AbstractListener.ContinuousEvent<E>
delta
- elapsed time delta lesser than pauseprotected void watchTimeElapsedAndAboutToProcess(long delta)
AbstractListener.ContinuousEvent
watchTimeElapsedAndAboutToProcess
in class AbstractListener.ContinuousEvent<E>
delta
- elapsed time delta greater or equal to pause