1
2
3
4
5
6
7
8
9
10
11 package org.mule.api.store;
12
13 import java.io.Serializable;
14 import java.util.List;
15
16 public interface PartitionableObjectStore<T extends Serializable> extends ListableObjectStore<T>
17 {
18 boolean contains(Serializable key, String partitionName) throws ObjectStoreException;
19
20 void store(Serializable key, T value, String partitionName) throws ObjectStoreException;
21
22 T retrieve(Serializable key, String partitionName) throws ObjectStoreException;
23
24 T remove(Serializable key, String partitionName) throws ObjectStoreException;
25
26 List<Serializable> allKeys(String partitionName) throws ObjectStoreException;
27
28 List<String> allPartitions() throws ObjectStoreException;
29
30 void open(String partitionName) throws ObjectStoreException;
31
32 void close(String partitionName) throws ObjectStoreException;
33
34 void disposePartition(String partitionName) throws ObjectStoreException;
35 }