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

Method Summary
 void setCache(Cache c)
           
 boolean shouldStore(Serializable key, Serializable val, Long expiresAt, Long cost)
           
 boolean shouldStore(Serializable key, Serializable val, Long expiresAt, Long cost, byte[] serialized)
           
 void unsetCache()
           
 boolean wantsSerializedForm()
           
 

Method Detail

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.