Class AbstractQueueBrowserEnumeration
- java.lang.Object
-
- net.timewalker.ffmq4.common.session.AbstractQueueBrowserEnumeration
-
- All Implemented Interfaces:
Enumeration<AbstractMessage>
- Direct Known Subclasses:
LocalQueueBrowserEnumeration,RemoteQueueBrowserEnumeration
public abstract class AbstractQueueBrowserEnumeration extends Object implements Enumeration<AbstractMessage>
Base implementation for a
QueueBrowserenumeration.
-
-
Constructor Summary
Constructors Constructor Description AbstractQueueBrowserEnumeration(AbstractQueueBrowser browser, String enumId)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckNotClosed()Check that the queue browservoidclose()Close the enumerationStringgetId()protected voidonQueueBrowserEnumerationClose()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator, hasMoreElements, nextElement
-
-
-
-
Field Detail
-
id
protected String id
-
browser
protected AbstractQueueBrowser browser
-
closeLock
protected Object closeLock
-
closed
protected boolean closed
-
-
Constructor Detail
-
AbstractQueueBrowserEnumeration
public AbstractQueueBrowserEnumeration(AbstractQueueBrowser browser, String enumId)
Constructor
-
-
Method Detail
-
getId
public final String getId()
- Returns:
- the id
-
checkNotClosed
public final void checkNotClosed() throws javax.jms.JMSExceptionCheck that the queue browser- Throws:
javax.jms.JMSException
-
close
public final void close()
Close the enumeration
-
onQueueBrowserEnumerationClose
protected void onQueueBrowserEnumerationClose()
-
-