org.objectweb.perseus.cache.lib

Class BasicCacheManager.CapacityEvent

Enclosing Class:
BasicCacheManager
Implemented Interfaces:
CacheCapacityEvent

protected class BasicCacheManager.CapacityEvent
extends java.lang.Object
implements CacheCapacityEvent

This class is a basic implementation of the CacheCapacityEvent interface.

Field Summary

int
cacheSize
int
eventId
int
oldCacheSize

Fields inherited from interface org.objectweb.perseus.cache.api.CacheCapacityEvent

NOTIFY_CACHE_RESIZE

Constructor Summary

CapacityEvent(int eventid, int oldCacheSize, int cacheSize)

Method Summary

int
getEventId()
Returns the cache event type.
int
getOldSize()
It retrieves the old cache size before the resizing.
int
getSize()
It retrieves the new cache size.

Field Details

cacheSize

public int cacheSize


eventId

public int eventId


oldCacheSize

public int oldCacheSize

Constructor Details

CapacityEvent

public CapacityEvent(int eventid,
                     int oldCacheSize,
                     int cacheSize)

Method Details

getEventId

public int getEventId()
Returns the cache event type.
Specified by:
getEventId in interface CacheCapacityEvent


getOldSize

public int getOldSize()
It retrieves the old cache size before the resizing.
Specified by:
getOldSize in interface CacheCapacityEvent


getSize

public int getSize()
It retrieves the new cache size.
Specified by:
getSize in interface CacheCapacityEvent


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