org.objectweb.perseus.cache.lib

Class BasicReplaceableCacheEntry

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

BasicReplaceableCacheEntry(Object id, Object o)

Method Summary

void
fixCe()
Marks this entry as used.
long
getCeAge()
int
getCeFixCount()
Object
getCeIdentifier()
Returns the object identifier associated to the object in the cache entry.
Object
getCeObject()
Gives access to the object within the cache entry.
void
setCeAge(long age)
void
unfixCe()
Marks this entry as used.

Constructor Details

BasicReplaceableCacheEntry

public BasicReplaceableCacheEntry(Object id,
                                  Object o)

Method Details

fixCe

public void fixCe()
Marks this entry as used.
Specified by:
fixCe in interface FixableCacheEntry


getCeAge

public long getCeAge()
Specified by:
getCeAge in interface ReplaceableCacheEntry


getCeFixCount

public int getCeFixCount()
Specified by:
getCeFixCount in interface FixableCacheEntry

Returns:
the number of use of this entry.


getCeIdentifier

public Object getCeIdentifier()
Returns the object identifier associated to the object in the cache entry.
Specified by:
getCeIdentifier in interface CacheEntry


getCeObject

public Object getCeObject()
Gives access to the object within the cache entry.
Specified by:
getCeObject in interface CacheEntry


setCeAge

public void setCeAge(long age)
Specified by:
setCeAge in interface ReplaceableCacheEntry


unfixCe

public void unfixCe()
            throws UnFixProtocolException
Marks this entry as used.
Specified by:
unfixCe in interface FixableCacheEntry

Throws:
UnFixProtocolException -


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