com.bigdata.cache
Interface ICacheEntry<K,T>

All Superinterfaces:
IWeakRefCacheEntry<K,T>

public interface ICacheEntry<K,T>
extends IWeakRefCacheEntry<K,T>

Interface for hard reference cache entries exposes a dirty flag in addition to the object identifier and object reference.

Version:
$Id: ICacheEntry.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
thompsonbry
TODO:
Support clearing updated objects for hot cache between transactions. Add metadata boolean that indicates whether the object was modified since the cache was last cleared regardless of whether the object has since been installed on the persistence layer and marked as clean. The purpose of this is to support clearing of modified objects from the object cache when a transaction is aborted. Such objects must be cleared if they have been modified since they were installed in the cache regardless of whether they are currently dirty or not. Supporting this feature will probably require a hard reference Set containing the object identifier of each object that was marked as dirty in the cache since the cache was last cleared.

Method Summary
 boolean isDirty()
          Return true iff the object associated with this entry is dirty.
 void setDirty(boolean dirty)
          Set the dirty flag.
 
Methods inherited from interface com.bigdata.cache.IWeakRefCacheEntry
getKey, getObject
 

Method Detail

isDirty

boolean isDirty()
Return true iff the object associated with this entry is dirty.


setDirty

void setDirty(boolean dirty)
Set the dirty flag.

Parameters:
dirty - true iff the object associated with this entry is dirty.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.