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.
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
FieldsModifier and TypeFieldDescriptionstatic final longInitial startup delay for the expired event removal taskstatic final longTTL for an event in the cache. -
Constructor Summary
ConstructorsConstructorDescriptionUpdateEventsCache(IRowIdAccessor<T> rowIdAccessor, org.eclipse.nebula.widgets.nattable.blink.KeyStrategy keyStrategy, ScheduledExecutorService cleanupScheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanintgetCount()protected StringgetKey(PropertyUpdateEvent<T> event) booleanvoidput(PropertyUpdateEvent<T> event) void
-
Field Details
-
INITIAL_DELAY
public static final long INITIAL_DELAYInitial startup delay for the expired event removal task- See Also:
-
TIME_TO_LIVE
public static final long TIME_TO_LIVETTL for an event in the cache. The event is deleted when this expires- See Also:
-
-
Constructor Details
-
UpdateEventsCache
public UpdateEventsCache(IRowIdAccessor<T> rowIdAccessor, org.eclipse.nebula.widgets.nattable.blink.KeyStrategy keyStrategy, ScheduledExecutorService cleanupScheduler)
-
-
Method Details
-
put
-
getKey
-
getKey
-
getEvent
-
getCount
public int getCount() -
contains
-
isUpdated
-
clear
public void clear() -
remove
-