@Deprecated public class QueuePersistenceObjectStore<T extends Serializable> extends AbstractObjectStore<T> implements ListableObjectStore<T>, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_QUEUE_STORE
Deprecated.
The default queueStore directory for persistence
|
logger| Constructor and Description |
|---|
QueuePersistenceObjectStore()
Deprecated.
Default constructor for Spring.
|
QueuePersistenceObjectStore(MuleContext context)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected List<Serializable> |
collectAllKeys()
Deprecated.
|
protected void |
createStoreDirectory(File directory)
Deprecated.
|
protected File |
createStoreFile(Serializable key)
Deprecated.
|
protected void |
deleteStoreFile(File file)
Deprecated.
|
protected T |
deserialize(File file)
Deprecated.
|
protected boolean |
doContains(Serializable key)
Deprecated.
|
protected T |
doRemove(Serializable key)
Deprecated.
|
protected T |
doRetrieve(Serializable key)
Deprecated.
|
protected void |
doStore(Serializable key,
T value)
Deprecated.
|
protected void |
ensureStoreDirectoryExists(File outputFile)
Deprecated.
|
boolean |
isPersistent()
Deprecated.
Is this store persistent?
|
protected void |
listStoredFiles(File directory,
List<Serializable> keys)
Deprecated.
|
void |
open()
Deprecated.
Open the underlying store.
|
protected void |
serialize(T value,
File outputFile)
Deprecated.
|
void |
setMuleContext(MuleContext context)
Deprecated.
|
contains, remove, retrieve, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, remove, retrieve, storepublic static final String DEFAULT_QUEUE_STORE
public QueuePersistenceObjectStore()
public QueuePersistenceObjectStore(MuleContext context)
public boolean isPersistent()
isPersistent in interface ObjectStore<T extends Serializable>public void open()
throws ObjectStoreException
ListableObjectStoreopen in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while opening the underlying store.public void clear()
throws ObjectStoreException
ObjectStoreclear in interface ObjectStore<T extends Serializable>ObjectStoreException - if the operation failsprotected void createStoreDirectory(File directory) throws ObjectStoreException
ObjectStoreExceptionpublic void close()
throws ObjectStoreException
ListableObjectStoreclose 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.protected List<Serializable> collectAllKeys() throws ObjectStoreException
ObjectStoreExceptionprotected void listStoredFiles(File directory, List<Serializable> keys) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected boolean doContains(Serializable key) throws ObjectStoreException
doContains in class AbstractObjectStore<T extends Serializable>ObjectStoreExceptionprotected void doStore(Serializable key, T value) throws ObjectStoreException
doStore in class AbstractObjectStore<T extends Serializable>ObjectStoreExceptionprotected void ensureStoreDirectoryExists(File outputFile) throws ObjectStoreException
ObjectStoreExceptionprotected void serialize(T value, File outputFile) throws ObjectStoreException
ObjectStoreExceptionprotected T doRetrieve(Serializable key) throws ObjectStoreException
doRetrieve in class AbstractObjectStore<T extends Serializable>ObjectStoreExceptionprotected File createStoreFile(Serializable key) throws ObjectStoreException
ObjectStoreExceptionprotected T deserialize(File file) throws ObjectStoreException
ObjectStoreExceptionprotected T doRemove(Serializable key) throws ObjectStoreException
doRemove in class AbstractObjectStore<T extends Serializable>ObjectStoreExceptionprotected void deleteStoreFile(File file) throws ObjectStoreException
ObjectStoreExceptionpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.