org.eclipse.nebula.widgets.nattable.blink
Class UpdateEventsCache<T>
java.lang.Object
org.eclipse.nebula.widgets.nattable.blink.UpdateEventsCache<T>
- Type Parameters:
T
- Type of the Bean in the backing list.
public class UpdateEventsCache<T>
- extends Object
Cache for the update events coming in.
This cache is used by the BlinkLayer
to check if updates are
available for a cell (hence, does it need to blink).
Field Summary |
static int |
INITIAL_DELAY
Initial startup delay for the expired event removal task |
static int |
TIME_TO_LIVE
TTL for an event in the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL_DELAY
public static final int INITIAL_DELAY
- Initial startup delay for the expired event removal task
- See Also:
- Constant Field Values
TIME_TO_LIVE
public static final int TIME_TO_LIVE
- TTL for an event in the cache. The event is deleted when this expires
- See Also:
- Constant Field Values
UpdateEventsCache
public UpdateEventsCache(IRowIdAccessor<T> rowIdAccessor,
org.eclipse.nebula.widgets.nattable.blink.KeyStrategy keyStrategy,
ScheduledExecutorService cleanupScheduler)
put
public void put(PropertyUpdateEvent<T> event)
getKey
protected String getKey(PropertyUpdateEvent<T> event)
getKey
public String getKey(String columnProperty,
String rowId)
getEvent
public PropertyUpdateEvent<T> getEvent(String key)
getCount
public int getCount()
contains
public boolean contains(String columnProperty,
String rowId)
isUpdated
public boolean isUpdated(String key)
clear
public void clear()
remove
public void remove(String key)
Copyright © 2014. All rights reserved.