org.objectweb.perseus.cache.lib
Class BasicReplaceableCacheEntry

java.lang.Object
  extended byorg.objectweb.perseus.cache.lib.BasicReplaceableCacheEntry
All Implemented Interfaces:
CacheEntry, FixableCacheEntry, ReplaceableCacheEntry

public class BasicReplaceableCacheEntry
extends java.lang.Object
implements ReplaceableCacheEntry

This class is a simple implementation of the ReplaceableCacheEntry interface.

Author:
S.Chassande-Barrioz, E.Bruneton

Constructor Summary
protected BasicReplaceableCacheEntry(java.lang.Object id)
           
  BasicReplaceableCacheEntry(java.lang.Object id, java.lang.Object o)
           
 
Method Summary
 void fixCe()
          Marks this entry as used.
 long getCeAge()
           
 int getCeFixCount()
           
 java.lang.Object getCeIdentifier()
          Returns the object identifier associated to the object in the cache entry.
 java.lang.Object getCeObject()
          Gives access to the object within the cache entry.
 void setCeAge(long age)
          It assignes a logical age to the entry.
 void unfixCe()
          Marks this entry as used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicReplaceableCacheEntry

protected BasicReplaceableCacheEntry(java.lang.Object id)

BasicReplaceableCacheEntry

public BasicReplaceableCacheEntry(java.lang.Object id,
                                  java.lang.Object o)
Method Detail

getCeObject

public java.lang.Object getCeObject()
Description copied from interface: CacheEntry
Gives access to the object within the cache entry.

Specified by:
getCeObject in interface CacheEntry

getCeIdentifier

public java.lang.Object getCeIdentifier()
Description copied from interface: CacheEntry
Returns the object identifier associated to the object in the cache entry.

Specified by:
getCeIdentifier in interface CacheEntry

fixCe

public void fixCe()
Description copied from interface: FixableCacheEntry
Marks this entry as used.

Specified by:
fixCe in interface FixableCacheEntry

unfixCe

public void unfixCe()
             throws UnFixProtocolException
Description copied from interface: FixableCacheEntry
Marks this entry as used.

Specified by:
unfixCe in interface FixableCacheEntry
Throws:
UnFixProtocolException

getCeFixCount

public int getCeFixCount()
Specified by:
getCeFixCount in interface FixableCacheEntry
Returns:
the number of use of this entry.

getCeAge

public long getCeAge()
Specified by:
getCeAge in interface ReplaceableCacheEntry
Returns:
the logical age of the entry.

setCeAge

public void setCeAge(long age)
Description copied from interface: ReplaceableCacheEntry
It assignes a logical age to the entry.

Specified by:
setCeAge in interface ReplaceableCacheEntry
Parameters:
age -


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.