org.mule.impl.space
Class AbstractSpace
java.lang.Object
org.mule.impl.space.AbstractSpace
- All Implemented Interfaces:
- Disposable, UMOSpace
- Direct Known Subclasses:
- DefaultSpace, GSSpace
- public abstract class AbstractSpace
- extends Object
- implements UMOSpace
Provides core functionality for all spaces, including listenr management and
Server notification support.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected transient Log logger
- logger used by this class
listeners
protected List listeners
monitorListeners
protected List monitorListeners
name
protected String name
enableMonitorEvents
protected boolean enableMonitorEvents
transactionFactory
protected UMOTransactionFactory transactionFactory
AbstractSpace
protected AbstractSpace(String name)
AbstractSpace
protected AbstractSpace(String name,
boolean enableMonitorEvents)
addListener
public void addListener(UMOSpaceEventListener listener)
- Specified by:
addListener in interface UMOSpace
removeListener
public void removeListener(UMOSpaceEventListener listener)
- Specified by:
removeListener in interface UMOSpace
addMonitorListener
public void addMonitorListener(SpaceMonitorNotificationListener listener)
removeMonitorListener
public void removeMonitorListener(SpaceMonitorNotificationListener listener)
getName
public String getName()
- Specified by:
getName in interface UMOSpace
put
public final void put(Object value)
throws UMOSpaceException
- Specified by:
put in interface UMOSpace
- Throws:
UMOSpaceException
put
public void put(Object value,
long lease)
throws UMOSpaceException
- Specified by:
put in interface UMOSpace
- Throws:
UMOSpaceException
take
public Object take()
throws UMOSpaceException
- Specified by:
take in interface UMOSpace
- Throws:
UMOSpaceException
take
public Object take(long timeout)
throws UMOSpaceException
- Specified by:
take in interface UMOSpace
- Throws:
UMOSpaceException
takeNoWait
public Object takeNoWait()
throws UMOSpaceException
- Specified by:
takeNoWait in interface UMOSpace
- Throws:
UMOSpaceException
fireListeners
protected void fireListeners()
fireMonitorEvent
protected void fireMonitorEvent(int action,
Object item)
dispose
public void dispose()
- Description copied from interface:
Disposable
- A lifecycle method where implementor should free up any resources. If an
exception is thrown it should just be logged and processing should continue.
This method should not throw Runtime exceptions.
- Specified by:
dispose in interface Disposable
getTransactionFactory
public UMOTransactionFactory getTransactionFactory()
- Specified by:
getTransactionFactory in interface UMOSpace
setTransactionFactory
public void setTransactionFactory(UMOTransactionFactory transactionFactory)
- Specified by:
setTransactionFactory in interface UMOSpace
doPut
protected abstract void doPut(Object value)
throws UMOSpaceException
- Throws:
UMOSpaceException
doPut
protected abstract void doPut(Object value,
long lease)
throws UMOSpaceException
- Throws:
UMOSpaceException
doTake
protected abstract Object doTake()
throws UMOSpaceException
- Throws:
UMOSpaceException
doTake
protected abstract Object doTake(long timeout)
throws UMOSpaceException
- Throws:
UMOSpaceException
doTakeNoWait
protected abstract Object doTakeNoWait()
throws UMOSpaceException
- Throws:
UMOSpaceException
doDispose
protected abstract void doDispose()
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.