org.mule.impl.space
Class DefaultSpace

java.lang.Object
  extended byorg.mule.impl.space.AbstractSpace
      extended byorg.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


Field Summary
 
Fields inherited from class org.mule.impl.space.AbstractSpace
enableMonitorEvents, listeners, logger, monitorListeners, name, transactionFactory
 
Constructor Summary
  DefaultSpace(String name, QueueManager qm, boolean enableMonitorEvents)
           
  DefaultSpace(String name, QueuePersistenceStrategy ps, boolean enableMonitorEvents, int capacity)
           
protected DefaultSpace(String name, String parentName, QueueManager queueManager, QueueSession session, boolean enableMonitorEvents)
          Used for creating child spaces where the session sohuld be reused
 
Method Summary
 void beginTransaction()
           
 void commitTransaction()
           
 DefaultSpace createChild(String name)
           
protected  void doDispose()
           
 void doPut(Object item)
           
 void doPut(Object item, long lease)
           
 Object doTake()
           
 Object doTake(long timeout)
           
 Object doTakeNoWait()
           
 String getParentName()
           
 void rollbackTransaction()
           
 int size()
           
 
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
 

Constructor Detail

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 -
Method Detail

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.