org.mule.util.store
Class SimpleMemoryObjectStore<T extends Serializable>

java.lang.Object
  extended by org.mule.util.store.AbstractObjectStore<T>
      extended by org.mule.util.store.SimpleMemoryObjectStore<T>
All Implemented Interfaces:
ListableObjectStore<T>, ObjectStore<T>

public class SimpleMemoryObjectStore<T extends Serializable>
extends AbstractObjectStore<T>
implements ListableObjectStore<T>


Field Summary
 
Fields inherited from class org.mule.util.store.AbstractObjectStore
logger
 
Constructor Summary
SimpleMemoryObjectStore()
           
 
Method Summary
 List<Serializable> allKeys()
           
 void close()
          Close the underlying store.
protected  boolean doContains(Serializable key)
           
protected  T doRemove(Serializable key)
           
protected  T doRetrieve(Serializable key)
           
protected  void doStore(Serializable key, T value)
           
 boolean isPersistent()
          Is this store persistent?
 void open()
          Open the underlying store.
 
Methods inherited from class org.mule.util.store.AbstractObjectStore
contains, remove, retrieve, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.api.store.ObjectStore
contains, remove, retrieve, store
 

Constructor Detail

SimpleMemoryObjectStore

public SimpleMemoryObjectStore()
Method Detail

isPersistent

public boolean isPersistent()
Description copied from interface: ObjectStore
Is this store persistent?

Specified by:
isPersistent in interface ObjectStore<T extends Serializable>
Returns:
true if this store is persistent

doContains

protected boolean doContains(Serializable key)
Specified by:
doContains in class AbstractObjectStore<T extends Serializable>

doStore

protected void doStore(Serializable key,
                       T value)
                throws ObjectStoreException
Specified by:
doStore in class AbstractObjectStore<T extends Serializable>
Throws:
ObjectStoreException

doRetrieve

protected T doRetrieve(Serializable key)
Specified by:
doRetrieve in class AbstractObjectStore<T extends Serializable>

doRemove

protected T doRemove(Serializable key)
Specified by:
doRemove in class AbstractObjectStore<T extends Serializable>

open

public void open()
          throws ObjectStoreException
Description copied from interface: ListableObjectStore
Open the underlying store.

Specified by:
open in interface ListableObjectStore<T extends Serializable>
Throws:
ObjectStoreException - if an exception occurred while opening the underlying store.

close

public void close()
           throws ObjectStoreException
Description copied from interface: ListableObjectStore
Close the underlying store.

Specified by:
close in interface ListableObjectStore<T extends Serializable>
Throws:
ObjectStoreException - if an exception occurred while closing the underlying store.

allKeys

public List<Serializable> allKeys()
                           throws ObjectStoreException
Specified by:
allKeys in interface ListableObjectStore<T extends Serializable>
Returns:
list containing all keys that this object store currently holds values for.
Throws:
ObjectStoreException - if an exception occurred while collecting the list of all keys.


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.