org.apache.commons.cache
Interface StashPolicy
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- BaseStashPolicy
public interface StashPolicy
- extends Serializable
tk.
- Version:
- $Id: StashPolicy.java 155435 2005-02-26 13:17:27Z dirkv $
- Author:
- Rodney Waldhoff
shouldStore
boolean shouldStore(Serializable key,
Serializable val,
Long expiresAt,
Long cost)
shouldStore
boolean shouldStore(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
byte[] serialized)
setCache
void setCache(Cache c)
unsetCache
void unsetCache()
wantsSerializedForm
boolean wantsSerializedForm()
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.