com.metsci.glimpse.axis.listener
Class RateLimitedEventDispatcher<D>
java.lang.Object
com.metsci.glimpse.axis.listener.RateLimitedEventDispatcher<D>
- Direct Known Subclasses:
- RateLimitedAxisListener1D, RateLimitedAxisListener2D
public abstract class RateLimitedEventDispatcher<D>
- extends java.lang.Object
A helper method used by RateLimitedAxisListener1D and RateLimitedAxisListener2D
for receiving notifications that the min/max bounds of an Axis1D or Axis2D have changed
while guaranteeing that notifications arrive no faster than a specified rate.
This class is threaded in order to provide an additional guarantee that no axis
update will be missed. That is, if an axisUpdate( ) call is suppressed, but no
subsequent axis updates occur, axisUpdate( ) will be called one last time when the
rate allows.
- Author:
- ulman
- See Also:
Axis1D
Field Summary |
static java.util.logging.Logger |
logger
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static java.util.logging.Logger logger
RateLimitedEventDispatcher
public RateLimitedEventDispatcher()
RateLimitedEventDispatcher
public RateLimitedEventDispatcher(double maxFreqHz)
RateLimitedEventDispatcher
public RateLimitedEventDispatcher(long _idleTimeMillis)
eventOccurred
public void eventOccurred(D _data)
eventDispatch
public abstract void eventDispatch(D data)
Copyright © 2012 Metron, Inc.. All Rights Reserved.