@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, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, remove, retrieve, store
public 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
ListableObjectStore
open
in interface ListableObjectStore<T extends Serializable>
ObjectStoreException
- if an exception occurred while opening the underlying store.public void clear() throws ObjectStoreException
ObjectStore
clear
in interface ObjectStore<T extends Serializable>
ObjectStoreException
- if the operation failsprotected void createStoreDirectory(File directory) throws ObjectStoreException
ObjectStoreException
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.protected List<Serializable> collectAllKeys() throws ObjectStoreException
ObjectStoreException
protected void listStoredFiles(File directory, List<Serializable> keys) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected boolean doContains(Serializable key) throws ObjectStoreException
doContains
in class AbstractObjectStore<T extends Serializable>
ObjectStoreException
protected void doStore(Serializable key, T value) throws ObjectStoreException
doStore
in class AbstractObjectStore<T extends Serializable>
ObjectStoreException
protected void ensureStoreDirectoryExists(File outputFile) throws ObjectStoreException
ObjectStoreException
protected void serialize(T value, File outputFile) throws ObjectStoreException
ObjectStoreException
protected T doRetrieve(Serializable key) throws ObjectStoreException
doRetrieve
in class AbstractObjectStore<T extends Serializable>
ObjectStoreException
protected File createStoreFile(Serializable key) throws ObjectStoreException
ObjectStoreException
protected T deserialize(File file) throws ObjectStoreException
ObjectStoreException
protected T doRemove(Serializable key) throws ObjectStoreException
doRemove
in class AbstractObjectStore<T extends Serializable>
ObjectStoreException
protected void deleteStoreFile(File file) throws ObjectStoreException
ObjectStoreException
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.