1 /* 2 * $Id: ObjectStoreManager.java 22663 2011-08-15 06:28:49Z mike.schilling $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 5 * 6 * The software in this package is published under the terms of the CPAL v1.0 7 * license, a copy of which has been included with this distribution in the 8 * LICENSE.txt file. 9 */ 10 11 package org.mule.api.store; 12 13 import java.io.Serializable; 14 15 public interface ObjectStoreManager 16 { 17 /** 18 * Return the partition of the default in-memory store with the given name, creating it 19 * if necessary. 20 */ 21 <T extends ObjectStore<? extends Serializable>> T getObjectStore(String name); 22 23 /** 24 * Return the partition of the default in-memory or persistent store with the given name, creating it 25 * if necessary. 26 */ 27 <T extends ObjectStore<? extends Serializable>> T getObjectStore(String name, boolean isPersistent); 28 29 /** 30 * Return the monitored partition of the default in-memory or persistent store with the given name, creating it 31 * if necessary. 32 */ 33 <T extends ObjectStore<? extends Serializable>> T getObjectStore(String name, 34 boolean isPersistent, int maxEntries, int entryTTL, int expirationInterval); 35 36 /** 37 * Delete all objects from the partition 38 */ 39 void disposeStore(ObjectStore<? extends Serializable> store) throws ObjectStoreException; 40 }