nl.hippo.client.api.service
Class NOPCachingService

java.lang.Object
  extended by nl.hippo.client.api.service.NOPCachingService
All Implemented Interfaces:
Cache, CachingService

public class NOPCachingService
extends Object
implements CachingService

Convenience NOP implementation of the CachingService


Constructor Summary
NOPCachingService()
           
 
Method Summary
 void clear()
          Clear the Store of all data it holds
 boolean containsKey(Object key)
          Indicates if the given key is associated to a contained object.
 Object get(Object key)
          Get the object associated to the given unique key.
 String getStatisticsOverview()
          Returns string formatted cache statistics
 Iterator memoryKeys()
          Returns the list of used keys as an Enumeration of Objects.
 int memorySize()
          Returns count of the objects in the store, or -1 if could not be obtained.
 void remove(Object key)
          Remove the object associated to the given key.
 void store(Object key, Object value)
          Store the given object It is up to the caller to ensure that the key has a persistent state across different JVM executions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOPCachingService

public NOPCachingService()
Method Detail

get

public Object get(Object key)
Description copied from interface: Cache
Get the object associated to the given unique key.

Specified by:
get in interface Cache

store

public void store(Object key,
                  Object value)
           throws IOException
Description copied from interface: Cache
Store the given object It is up to the caller to ensure that the key has a persistent state across different JVM executions.

Specified by:
store in interface Cache
Throws:
IOException

remove

public void remove(Object key)
Description copied from interface: Cache
Remove the object associated to the given key.

Specified by:
remove in interface Cache

clear

public void clear()
Description copied from interface: Cache
Clear the Store of all data it holds

Specified by:
clear in interface Cache

containsKey

public boolean containsKey(Object key)
Description copied from interface: Cache
Indicates if the given key is associated to a contained object.

Specified by:
containsKey in interface Cache

memoryKeys

public Iterator memoryKeys()
Description copied from interface: Cache
Returns the list of used keys as an Enumeration of Objects.

Specified by:
memoryKeys in interface Cache

memorySize

public int memorySize()
Description copied from interface: Cache
Returns count of the objects in the store, or -1 if could not be obtained.

Specified by:
memorySize in interface Cache

getStatisticsOverview

public String getStatisticsOverview()
Description copied from interface: Cache
Returns string formatted cache statistics

Specified by:
getStatisticsOverview in interface Cache


Copyright © 2006-2009 Hippo. All Rights Reserved.