1 10 11 package org.mule.umo.space; 12 13 import org.mule.umo.UMOTransactionFactory; 14 import org.mule.umo.lifecycle.Disposable; 15 16 21 public interface UMOSpace extends Disposable 22 { 23 24 public void addListener(UMOSpaceEventListener listener); 25 26 public void removeListener(UMOSpaceEventListener listener); 27 28 public String getName(); 29 30 public void put(Object value) throws UMOSpaceException; 31 32 public void put(Object value, long lease) throws UMOSpaceException; 33 34 public Object take() throws UMOSpaceException; 35 36 public Object take(long timeout) throws UMOSpaceException; 37 38 public Object takeNoWait() throws UMOSpaceException; 39 40 public int size(); 41 42 void setTransactionFactory(UMOTransactionFactory txFactory); 43 44 UMOTransactionFactory getTransactionFactory(); 45 46 void beginTransaction() throws UMOSpaceException; 47 48 void commitTransaction() throws UMOSpaceException; 49 50 void rollbackTransaction() throws UMOSpaceException; 51 52 } 53 | Popular Tags |