| Package | Description |
|---|---|
| org.mule.runtime.api.store |
| Modifier and Type | Class and Description |
|---|---|
class |
ObjectAlreadyExistsException
This exception is thrown when an
ObjectStore tries to store a value using a key for which another value
is already present. |
class |
ObjectDoesNotExistException
This exception is thrown when an
ObjectStore attempts to operate on a key for which it doesn't
have an associated value |
class |
ObjectStoreNotAvailableException
This exception is thrown when the underlying to an
ObjectStore's system fails. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
ObjectStore.allKeys() |
List<String> |
PartitionableObjectStore.allKeys(String partitionName) |
List<String> |
PartitionableObjectStore.allPartitions() |
void |
ObjectStore.clear()
Removes all items of this store without disposing it, meaning that after performing a clear(), you should still be able
perform other operations.
|
void |
PartitionableObjectStore.clear(String partitionName)
Clears the contents of the partition, but the partition itself remains functional
|
void |
ObjectStore.close()
Close the underlying store.
|
void |
PartitionableObjectStore.close(String partitionName)
Closes the partition of the give
partitionName |
boolean |
TemplateObjectStore.contains(String key)
Check whether this store already contains a value for the given
key |
boolean |
ObjectStore.contains(String key)
Check whether this store already contains a value for the given
key |
boolean |
PartitionableObjectStore.contains(String key,
String partitionName)
Check whether the given
partitionName already contains a value for the given key |
void |
PartitionableObjectStore.disposePartition(String partitionName)
Disposes the given partition, releasing all associated resources and storage.
|
void |
ObjectStoreManager.disposeStore(String name)
Clears the object store of the given
name and releases all resources associated to it, including memory,
storage, etc. |
protected abstract boolean |
TemplateObjectStore.doContains(String key)
Template method for
TemplateObjectStore.contains(String). |
protected abstract T |
TemplateObjectStore.doRemove(String key)
Template method for
TemplateObjectStore.remove(String) (String, Serializable)}. |
protected abstract T |
TemplateObjectStore.doRetrieve(String key)
Template method for
TemplateObjectStore.store(String, Serializable). |
protected abstract void |
TemplateObjectStore.doStore(String key,
T value)
Template method for
TemplateObjectStore.store(String, Serializable). |
void |
ObjectStore.open()
Open the underlying store.
|
void |
PartitionableObjectStore.open(String partitionName)
Open the partition of the given
partitionName |
T |
TemplateObjectStore.remove(String key)
Remove the object with the given
key |
T |
ObjectStore.remove(String key)
Remove the object with the given
key |
T |
PartitionableObjectStore.remove(String key,
String partitionName)
Remove the object with the given
key in the given partitionName |
T |
TemplateObjectStore.retrieve(String key)
* Retrieve the object stored under the given
key |
T |
ObjectStore.retrieve(String key)
* Retrieve the object stored under the given
key |
T |
PartitionableObjectStore.retrieve(String key,
String partitionName)
Retrieve the object stored under the given
key in the given partitionName |
void |
TemplateObjectStore.store(String key,
T value)
Store the given Object.
|
void |
ObjectStore.store(String key,
T value)
Store the given Object.
|
void |
PartitionableObjectStore.store(String key,
T value,
String partitionName)
Stores the given Object in the given
partitionName |
protected void |
AbstractObjectStoreSupport.validateKey(String key) |
protected void |
AbstractObjectStoreSupport.validatePresentKey(String key) |
Copyright © 2017 MuleSoft, Inc.. All rights reserved.