1 10 11 package org.mule.util.queue; 12 13 import java.io.IOException ; 14 import java.util.List ; 15 16 24 public interface QueuePersistenceStrategy 25 { 26 27 public interface Holder 28 { 29 Object getId(); 30 31 String getQueue(); 32 } 33 34 41 Object store(String queue, Object obj) throws IOException ; 42 43 50 Object load(String queue, Object id) throws IOException ; 51 52 58 void remove(String queue, Object id) throws IOException ; 59 60 66 List restore() throws IOException ; 67 68 73 void open() throws IOException ; 74 75 80 void close() throws IOException ; 81 82 boolean isTransient(); 83 84 } 85 | Popular Tags |