org.apache.cocoon.components.store
Class MemoryStore

java.lang.Object
  extended by org.apache.cocoon.components.store.MemoryStore
All Implemented Interfaces:
Component, ThreadSafe, Store

Deprecated. Use the Avalon Excalibur Store instead.

public class MemoryStore
extends Object
implements Store, ThreadSafe

Version:
CVS $Id: MemoryStore.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Federico Barbieri (Betaversion Productions), Stefano Mazzocchi (Apache Software Foundation), Pierpaolo Fumagalli (Apache Software Foundation)

Field Summary
 
Fields inherited from interface org.apache.cocoon.components.store.Store
PERSISTENT_CACHE, ROLE, TRANSIENT_CACHE
 
Constructor Summary
MemoryStore()
          Deprecated.  
 
Method Summary
 boolean containsKey(Object key)
          Deprecated. Indicates if the given key is associated to a contained object.
 void free()
          Deprecated.  
 Object get(Object key)
          Deprecated. Get the object associated to the given unique key.
 void hold(Object key, Object value)
          Deprecated. Holds the given object in a volatile state.
 Enumeration keys()
          Deprecated. Returns the list of used keys as an Enumeration of Objects.
 void remove(Object key)
          Deprecated. Remove the object associated to the given key.
 int size()
          Deprecated. Returns count of the objects in the store, or -1 if could not be obtained.
 void store(Object key, Object value)
          Deprecated. Store the given object in a persistent state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryStore

public MemoryStore()
Deprecated. 
Method Detail

get

public Object get(Object key)
Deprecated. 
Get the object associated to the given unique key.

Specified by:
get in interface Store

store

public void store(Object key,
                  Object value)
Deprecated. 
Store the given object in a persistent state. It is up to the caller to ensure that the key has a persistent state across different JVM executions.

Specified by:
store in interface Store

hold

public void hold(Object key,
                 Object value)
Deprecated. 
Holds the given object in a volatile state. This means the object store will discard held objects if the virtual machine is restarted or some error happens.

Specified by:
hold in interface Store

remove

public void remove(Object key)
Deprecated. 
Remove the object associated to the given key.

Specified by:
remove in interface Store

free

public void free()
Deprecated. 
Specified by:
free in interface Store

containsKey

public boolean containsKey(Object key)
Deprecated. 
Indicates if the given key is associated to a contained object.

Specified by:
containsKey in interface Store

keys

public Enumeration keys()
Deprecated. 
Returns the list of used keys as an Enumeration of Objects.

Specified by:
keys in interface Store

size

public int size()
Deprecated. 
Returns count of the objects in the store, or -1 if could not be obtained.

Specified by:
size in interface Store


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.