org.mule.impl.space
Class DefaultSpace
java.lang.Object
org.mule.impl.space.AbstractSpace
org.mule.impl.space.DefaultSpace
- All Implemented Interfaces:
- Disposable, UMOSpace
- public class DefaultSpace
- extends AbstractSpace
Creates a transaction and persistent local space. This should not be used in a
clustered environment
| Methods inherited from class org.mule.impl.space.AbstractSpace |
addListener, addMonitorListener, dispose, fireListeners, fireMonitorEvent, getName, getTransactionFactory, put, put, removeListener, removeMonitorListener, setTransactionFactory, take, take, takeNoWait |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSpace
public DefaultSpace(String name,
QueuePersistenceStrategy ps,
boolean enableMonitorEvents,
int capacity)
throws ResourceManagerSystemException
DefaultSpace
public DefaultSpace(String name,
QueueManager qm,
boolean enableMonitorEvents)
DefaultSpace
protected DefaultSpace(String name,
String parentName,
QueueManager queueManager,
QueueSession session,
boolean enableMonitorEvents)
- Used for creating child spaces where the session sohuld be reused
- Parameters:
name - queueManager - session - enableMonitorEvents -
doPut
public void doPut(Object item)
throws UMOSpaceException
- Specified by:
doPut in class AbstractSpace
- Throws:
UMOSpaceException
doPut
public void doPut(Object item,
long lease)
throws UMOSpaceException
- Specified by:
doPut in class AbstractSpace
- Throws:
UMOSpaceException
doTake
public Object doTake()
throws UMOSpaceException
- Specified by:
doTake in class AbstractSpace
- Throws:
UMOSpaceException
doTake
public Object doTake(long timeout)
throws UMOSpaceException
- Specified by:
doTake in class AbstractSpace
- Throws:
UMOSpaceException
doTakeNoWait
public Object doTakeNoWait()
throws UMOSpaceException
- Specified by:
doTakeNoWait in class AbstractSpace
- Throws:
UMOSpaceException
doDispose
protected void doDispose()
- Specified by:
doDispose in class AbstractSpace
size
public int size()
beginTransaction
public void beginTransaction()
throws UMOSpaceException
- Throws:
UMOSpaceException
commitTransaction
public void commitTransaction()
throws UMOSpaceException
- Throws:
UMOSpaceException
rollbackTransaction
public void rollbackTransaction()
throws UMOSpaceException
- Throws:
UMOSpaceException
createChild
public DefaultSpace createChild(String name)
getParentName
public String getParentName()
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.