org.objectweb.perseus.cache.api

Interface CacheEvent

Known Implementing Classes:
BasicCacheManager.Event

public interface CacheEvent

Defines the interface template for CacheEvent implementation.

Author:
Luciano Garcia-Banuelos (Luciano.Garcia@imag.fr)

Field Summary

static int
NOTIFY_BIND
Used to notify an add object to cache event.
static int
NOTIFY_UNBIND
Used to notify an object eviction event.

Method Summary

Object
getCeIdentifier()
CacheEntry
getEntry()
int
getEventId()
Returns the cache event type.

Field Details

NOTIFY_BIND

public static final int NOTIFY_BIND
Used to notify an add object to cache event.

Field Value:
1


NOTIFY_UNBIND

public static final int NOTIFY_UNBIND
Used to notify an object eviction event.

Field Value:
2

Method Details

getCeIdentifier

public Object getCeIdentifier()

Returns:
the identifier of the entry unbound


getEntry

public CacheEntry getEntry()

Returns:
the entry bound


getEventId

public int getEventId()
Returns the cache event type.


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