|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.util.store.QueueStoreAdapter<T>
@Deprecated public class QueueStoreAdapter<T extends Serializable>
Adapts a ListableObjectStore to make it useful to store event queues.
| Constructor Summary | |
|---|---|
QueueStoreAdapter(ListableObjectStore<T> store)
Deprecated. |
|
| Method Summary | |
|---|---|
List<Serializable> |
allKeys()
Deprecated. |
void |
clear()
Deprecated. Removes all items of this store without disposing it, meaning that after performing a clear(), you should still be able perform other operations. |
void |
close()
Deprecated. Close the underlying store. |
boolean |
contains(Serializable key)
Deprecated. Check whether the given Object is already registered with this store. |
boolean |
isPersistent()
Deprecated. Is this store persistent? |
void |
open()
Deprecated. Open the underlying store. |
T |
remove(Serializable key)
Deprecated. Remove the object with key. |
T |
retrieve(Serializable key)
Deprecated. Retrieve the given Object. |
void |
setMuleContext(MuleContext context)
Deprecated. |
void |
store(Serializable key,
T value)
Deprecated. Store the given Object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueStoreAdapter(ListableObjectStore<T> store)
| Method Detail |
|---|
public void open()
throws ObjectStoreException
ListableObjectStore
open in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while opening the underlying store.
public void close()
throws ObjectStoreException
ListableObjectStore
close in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while closing the underlying store.
public List<Serializable> allKeys()
throws ObjectStoreException
allKeys in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while collecting the list of all keys.
public boolean contains(Serializable key)
throws ObjectStoreException
ObjectStore
contains in interface ObjectStore<T extends Serializable>key - the identifier of the object to check
true if the key is stored or false no value
was stored for the key.
ObjectStoreException - if the given key is null.
ObjectStoreNotAvaliableException - if any implementation-specific error
occured, e.g. when the store is not available
public void store(Serializable key,
T value)
throws ObjectStoreException
ObjectStore
store in interface ObjectStore<T extends Serializable>key - the identifier for valuevalue - the Object to store with key
ObjectStoreException - if the given key cannot be stored or is
null.
ObjectStoreNotAvaliableException - if the store is not available or any
other implementation-specific error occured.
ObjectAlreadyExistsException - if an attempt is made to store an object
for a key that already has an object associated.
public T retrieve(Serializable key)
throws ObjectStoreException
ObjectStore
retrieve in interface ObjectStore<T extends Serializable>key - the identifier of the object to retrieve.
ObjectDoesNotExistException.
ObjectStoreException - if the given key is null.
ObjectStoreNotAvaliableException - if the store is not available or any
other implementation-specific error occured.
ObjectDoesNotExistException - if no value for the given key was
previously stored.
public T remove(Serializable key)
throws ObjectStoreException
ObjectStore
remove in interface ObjectStore<T extends Serializable>key - the identifier of the object to remove.
ObjectStoreException - if the given key is null or if the
store is not available or any other implementation-specific error
occured
ObjectDoesNotExistException - if no value for the given key was
previously stored.
public void clear()
throws ObjectStoreException
ObjectStore
clear in interface ObjectStore<T extends Serializable>ObjectStoreException - if the operation failspublic boolean isPersistent()
ObjectStore
isPersistent in interface ObjectStore<T extends Serializable>public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||