A C E F G L N O P R S T U V

A

addProperties(Map) - Method in class net.sf.ashkay.CacheEntry
Adds a group of properties to this entry, en masse
addProperties(Map) - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
addProperty(Object, Object) - Method in class net.sf.ashkay.CacheEntry
Adds a property to this entry.
addProperty(Object, Object) - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
addStrategy(CachingStrategy) - Method in class net.sf.ashkay.ObjectCache
Adds a caching strategy to this cache

C

CacheEntry - class net.sf.ashkay.CacheEntry.
CacheEntry represents a single entry in the object cache.
CacheEntry() - Constructor for class net.sf.ashkay.CacheEntry
Empty constructor for subclasses only
CacheEntry(Object, Object) - Constructor for class net.sf.ashkay.CacheEntry
Creates a default CacheEntry
CacheEntry(Object, Object, Map) - Constructor for class net.sf.ashkay.CacheEntry
Creates a CacheEntry with properties pre-specified
CacheEntry(Object, Object, Map, ObjectCache) - Constructor for class net.sf.ashkay.CacheEntry
 
CachingStrategy - interface net.sf.ashkay.CachingStrategy.
CachingStrategies provide abstract strategies about how a cache ought to perform its caching.
CreationException - exception net.sf.ashkay.CreationException.
CreationExceptions represent an error in the creation of an object in an ObjectFactory.
CreationException() - Constructor for class net.sf.ashkay.CreationException
Constructs a default CreationException without a message or source
CreationException(String) - Constructor for class net.sf.ashkay.CreationException
Constructs a CreationException with a message but no source
CreationException(Throwable) - Constructor for class net.sf.ashkay.CreationException
Constructs a CreationException with a source but no message
CreationException(String, Throwable) - Constructor for class net.sf.ashkay.CreationException
Contructs a CreationException with a message and source
clear() - Method in class net.sf.ashkay.ObjectCache
Clears the cache
constructObject(Object) - Method in interface net.sf.ashkay.LazyObjectFactory
 
createObjectFor(Object, Object) - Method in interface net.sf.ashkay.ObjectFactory
 

E

evict(Object) - Method in class net.sf.ashkay.ObjectCache
Forcefully evicts an object/key from the cache.

F

FullCachingStrategy - class net.sf.ashkay.strategies.FullCachingStrategy.
FullCachingStrategy implements the CachingStrategy interface to provide a hard cache with no expiration.
FullCachingStrategy() - Constructor for class net.sf.ashkay.strategies.FullCachingStrategy
 

G

get(Object) - Method in class net.sf.ashkay.ObjectCache
Finds an object in the cache and returns it.
get(Object, Object) - Method in class net.sf.ashkay.ObjectCache
Finds an object in the cache and returns it.
getCache() - Method in class net.sf.ashkay.CacheEntry
 
getCache() - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
getEntryKey() - Method in class net.sf.ashkay.CacheEntry
 
getEntryKey() - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
getEntryObject() - Method in class net.sf.ashkay.CacheEntry
Returns the object this entry represents.
getEntryObject() - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
getEntryReference() - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
getProperties() - Method in class net.sf.ashkay.CacheEntry
Returns the entire Map of this entry's properties
getProperties() - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
getProperty(Object) - Method in class net.sf.ashkay.CacheEntry
Looks up a property of this entry
getProperty(Object) - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 

L

LastModifiedCachingStrategy - class net.sf.ashkay.strategies.LastModifiedCachingStrategy.
LastModifiedCachingStrategy attempts to locate a timestamped resource and check the last time that resource was modified.
LastModifiedCachingStrategy() - Constructor for class net.sf.ashkay.strategies.LastModifiedCachingStrategy
 
LazyObjectFactory - interface net.sf.ashkay.LazyObjectFactory.
LazyObjectFactory is a factory tailored to use in a lazy instantiation model.

N

NullCachingStrategy - class net.sf.ashkay.strategies.NullCachingStrategy.
NullCachingStrategy prevents the cache from caching any data about the object
NullCachingStrategy() - Constructor for class net.sf.ashkay.strategies.NullCachingStrategy
 
net.sf.ashkay - package net.sf.ashkay
Ashkay is a strategy based caching tool.
net.sf.ashkay.strategies - package net.sf.ashkay.strategies
 

O

ObjectCache - class net.sf.ashkay.ObjectCache.
ObjectCache is the default implementation of an object caching mechanism.
ObjectCache() - Constructor for class net.sf.ashkay.ObjectCache
 
ObjectCache(ObjectFactory) - Constructor for class net.sf.ashkay.ObjectCache
Constructs an ObjectCache from a factory using the default strategy of NONE.
ObjectCache(List) - Constructor for class net.sf.ashkay.ObjectCache
Constructs an ObjectCache without a factory using the strategies indicated.
ObjectCache(ObjectFactory, List) - Constructor for class net.sf.ashkay.ObjectCache
Constructs an ObjectCache from a factory and strategy.
ObjectFactory - interface net.sf.ashkay.ObjectFactory.
ObjectFactory is the factory for creating objects used by the ObjectCache.

P

prepare(CacheEntry) - Method in interface net.sf.ashkay.CachingStrategy
Prepares the cache entry for caching with this strategy.
NOTE: Be Careful: a caching strategy is allowed to return a different CacheEntry, so make sure that you store the results of this method and don't assume the symantics of pass by reference.
prepare(CacheEntry) - Method in class net.sf.ashkay.strategies.FullCachingStrategy
 
prepare(CacheEntry) - Method in class net.sf.ashkay.strategies.LastModifiedCachingStrategy
Prepares the cache entry for caching with this strategy.
NOTE: Be Careful: a caching strategy is allowed to return a different CacheEntry, so make sure that you store the results of this method and don't assume the symantics of pass by reference.
prepare(CacheEntry) - Method in class net.sf.ashkay.strategies.SoftReferenceCachingStrategy
 
prepare(CacheEntry) - Method in class net.sf.ashkay.strategies.TimeExpirationCachingStrategy
 
put(Object, Object) - Method in class net.sf.ashkay.ObjectCache
 

R

removeStrategy(CachingStrategy) - Method in class net.sf.ashkay.ObjectCache
Removes a strategy from this cache

S

SoftReferenceCacheEntry - class net.sf.ashkay.strategies.SoftReferenceCacheEntry.
SoftReferenceCacheEntry represents a cache entry that is wrapped in which the entry object is wrapped in a SoftReference in order to allow the garbage collector to still collect the object if all other hard references are destroyed.
SoftReferenceCacheEntry(CacheEntry, ReferenceQueue) - Constructor for class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
SoftReferenceCachingStrategy - class net.sf.ashkay.strategies.SoftReferenceCachingStrategy.
A Soft Reference caching strategy uses soft references to store objects in the cache.
SoftReferenceCachingStrategy() - Constructor for class net.sf.ashkay.strategies.SoftReferenceCachingStrategy
 
setCache(ObjectCache) - Method in class net.sf.ashkay.CacheEntry
 
setCache(ObjectCache) - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
setEntryKey(Object) - Method in class net.sf.ashkay.CacheEntry
 
setEntryKey(Object) - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
setEntryObject(Object) - Method in class net.sf.ashkay.CacheEntry
Sets the object this entry represents
setEntryObject(Object) - Method in class net.sf.ashkay.strategies.SoftReferenceCacheEntry
 
size() - Method in class net.sf.ashkay.ObjectCache
Returns the size of the cache

T

TimeExpirationCachingStrategy - class net.sf.ashkay.strategies.TimeExpirationCachingStrategy.
TimeExpirationCachingStrategy expires objects in the cache after a set amount of time.
TimeExpirationCachingStrategy(long) - Constructor for class net.sf.ashkay.strategies.TimeExpirationCachingStrategy
Creates the caching strategy with the specified timeout.

U

usesStrategy(CachingStrategy) - Method in class net.sf.ashkay.ObjectCache
Checks if this cache uses the specified caching strategy

V

validate(CacheEntry) - Method in interface net.sf.ashkay.CachingStrategy
Validates this cache entry for this caching strategy.
validate(CacheEntry) - Method in class net.sf.ashkay.strategies.FullCachingStrategy
 
validate(CacheEntry) - Method in class net.sf.ashkay.strategies.LastModifiedCachingStrategy
Validates this cache entry for this caching strategy.
validate(CacheEntry) - Method in class net.sf.ashkay.strategies.NullCachingStrategy
Always returns false.
validate(CacheEntry) - Method in class net.sf.ashkay.strategies.SoftReferenceCachingStrategy
 
validate(CacheEntry) - Method in class net.sf.ashkay.strategies.TimeExpirationCachingStrategy
 

A C E F G L N O P R S T U V

Copyright © 2004 . All Rights Reserved.