org.castor.cache

Class DebuggingCacheProxy

Implemented Interfaces:
Cache, Map

public final class DebuggingCacheProxy
extends java.lang.Object
implements Cache

A debugging cache proxy.
Version:
$Revision: 6230 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Ralf Joachim
Since:
1.0

Fields inherited from interface org.castor.cache.Cache

DEFAULT_DEBUG, DEFAULT_NAME, DEFAULT_TYPE, PARAM_DEBUG, PARAM_NAME, PARAM_TYPE

Constructor Summary

DebuggingCacheProxy(Cache cache)
Construct a DebugCacheProxy for given cache.

Method Summary

void
clear()
void
close()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set
entrySet()
void
expire(Object key)
void
expireAll()
Object
get(Object key)
String
getName()
String
getType()
void
initialize(Properties params)
boolean
isEmpty()
Set
keySet()
Object
put(Object key, Object value)
void
putAll(Map map)
Object
remove(Object key)
int
size()
Collection
values()

Constructor Details

DebuggingCacheProxy

public DebuggingCacheProxy(Cache cache)
Construct a DebugCacheProxy for given cache.
Parameters:
cache - The wrapped cache.

Method Details

clear

public void clear()
See Also:
java.util.Map.clear()

close

public void close()
Specified by:
close in interface Cache
See Also:
Cache.close()

containsKey

public boolean containsKey(Object key)
See Also:
java.util.Map.containsKey(java.lang.Object)

containsValue

public boolean containsValue(Object value)
See Also:
java.util.Map.containsValue(java.lang.Object)

entrySet

public Set entrySet()
See Also:
java.util.Map.entrySet()

expire

public void expire(Object key)
Specified by:
expire in interface Cache
See Also:
org.castor.cache.Cache.expire(java.lang.Object)

expireAll

public void expireAll()
Specified by:
expireAll in interface Cache

get

public Object get(Object key)
See Also:
java.util.Map.get(java.lang.Object)

getName

public String getName()
Specified by:
getName in interface Cache

getType

public String getType()
Specified by:
getType in interface Cache

initialize

public void initialize(Properties params)
            throws CacheAcquireException
Specified by:
initialize in interface Cache
See Also:
org.castor.cache.Cache.initialize(java.util.Properties)

isEmpty

public boolean isEmpty()
See Also:
java.util.Map.isEmpty()

keySet

public Set keySet()
See Also:
java.util.Map.keySet()

put

public Object put(Object key,
                  Object value)
See Also:
java.util.Map.put(java.lang.Object, java.lang.Object)

putAll

public void putAll(Map map)
See Also:
java.util.Map.putAll(java.util.Map)

remove

public Object remove(Object key)
See Also:
java.util.Map.remove(java.lang.Object)

size

public int size()
See Also:
java.util.Map.size()

values

public Collection values()
See Also:
java.util.Map.values()

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com