org.jboss.shotoku.cache
Class UpdateThreadData<K,T>

java.lang.Object
  extended by org.jboss.shotoku.cache.UpdateThreadData<K,T>
Direct Known Subclasses:
SignalExitUpdateThreadData

public abstract class UpdateThreadData<K,T>
extends java.lang.Object

Function that should be executed by an update thread; updates an associated key in a cache item.

Author:
Adam Warski

Constructor Summary
UpdateThreadData(K key, CacheItemOperations<K,T> cacheItem)
           
 
Method Summary
abstract  void execute()
           
 void executeOk()
           
 void executeWithException(java.lang.Throwable t)
           
 long getCreateTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateThreadData

public UpdateThreadData(K key,
                        CacheItemOperations<K,T> cacheItem)
Method Detail

getCreateTime

public long getCreateTime()

executeOk

public void executeOk()

executeWithException

public void executeWithException(java.lang.Throwable t)

execute

public abstract void execute()