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 theBlinkLayer
to check if updates are available for a cell (hence, does it need to blink).
-
-
Field Summary
Fields Modifier and Type Field Description static long
INITIAL_DELAY
Initial startup delay for the expired event removal taskstatic long
TIME_TO_LIVE
TTL for an event in the cache.
-
Constructor Summary
Constructors Constructor Description UpdateEventsCache(IRowIdAccessor<T> rowIdAccessor, org.eclipse.nebula.widgets.nattable.blink.KeyStrategy keyStrategy, ScheduledExecutorService cleanupScheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
contains(String columnProperty, String rowId)
int
getCount()
PropertyUpdateEvent<T>
getEvent(String key)
String
getKey(String columnProperty, String rowId)
protected String
getKey(PropertyUpdateEvent<T> event)
boolean
isUpdated(String key)
void
put(PropertyUpdateEvent<T> event)
void
remove(String key)
-
-
-
Field Detail
-
INITIAL_DELAY
public static final long INITIAL_DELAY
Initial startup delay for the expired event removal task- See Also:
- Constant Field Values
-
TIME_TO_LIVE
public static final long TIME_TO_LIVE
TTL for an event in the cache. The event is deleted when this expires- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UpdateEventsCache
public UpdateEventsCache(IRowIdAccessor<T> rowIdAccessor, org.eclipse.nebula.widgets.nattable.blink.KeyStrategy keyStrategy, ScheduledExecutorService cleanupScheduler)
-
-
Method Detail
-
put
public void put(PropertyUpdateEvent<T> event)
-
getKey
protected String getKey(PropertyUpdateEvent<T> event)
-
getEvent
public PropertyUpdateEvent<T> getEvent(String key)
-
getCount
public int getCount()
-
isUpdated
public boolean isUpdated(String key)
-
clear
public void clear()
-
remove
public void remove(String key)
-
-