org.eclipse.nebula.widgets.nattable.blink
Class UpdateEventsCache<T>

java.lang.Object
  extended by 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.
 
Constructor Summary
UpdateEventsCache(IRowIdAccessor<T> rowIdAccessor, org.eclipse.nebula.widgets.nattable.blink.KeyStrategy keyStrategy, ScheduledExecutorService cleanupScheduler)
           
 
Method Summary
 void clear()
           
 boolean contains(String columnProperty, String rowId)
           
 int getCount()
           
 PropertyUpdateEvent<T> getEvent(String key)
           
protected  String getKey(PropertyUpdateEvent<T> event)
           
 String getKey(String columnProperty, String rowId)
           
 boolean isUpdated(String key)
           
 void put(PropertyUpdateEvent<T> event)
           
 void remove(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
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)

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.