org.apache.wicket.markup
Interface MarkupCache.ICache

All Known Implementing Classes:
MarkupCache.DefaultCacheImplementation
Enclosing class:
MarkupCache

public static interface MarkupCache.ICache

MarkupCache allows you to implement you own cache implementation. ICache is the interface the implementation must comply with.

See Also:
MarkupCache

Method Summary
 void clear()
          Clear the cache
 boolean containsKey(java.lang.Object key)
          Check if key is in the cache
 java.lang.Object get(java.lang.Object key)
          Get the cache element associated with the key
 java.util.Collection getKeys()
          Get all the keys referencing cache entries
 void put(java.lang.Object key, java.lang.Object value)
          Put an entry into the cache
 boolean remove(java.lang.Object key)
          Remove an entry from the cache.
 void shutdown()
          Cleanup and shutdown
 int size()
          Get the number of cache entries
 

Method Detail

clear

void clear()
Clear the cache


remove

boolean remove(java.lang.Object key)
Remove an entry from the cache.

Parameters:
key -
Returns:
true, if found and removed

get

java.lang.Object get(java.lang.Object key)
Get the cache element associated with the key

Parameters:
key -
Returns:

getKeys

java.util.Collection getKeys()
Get all the keys referencing cache entries

Returns:

containsKey

boolean containsKey(java.lang.Object key)
Check if key is in the cache

Parameters:
key -
Returns:

size

int size()
Get the number of cache entries

Returns:

put

void put(java.lang.Object key,
         java.lang.Object value)
Put an entry into the cache

Parameters:
key - The reference key to find the element
value - The element to be cached

shutdown

void shutdown()
Cleanup and shutdown



Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.