|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.apache.commons.messenger.DefaultServerSession
DefaultServerSession
is a default implementation of
the JMS ServerSession interface.
Field Summary | |
private javax.jms.Session |
session
The JMS Session on which this ServerSession is based |
private boolean |
started
Indicates whether the session has been started |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
DefaultServerSession(javax.jms.Session session)
|
Method Summary | |
javax.jms.Session |
getSession()
Return the ServerSession's Session. |
void |
run()
|
void |
start()
Cause the session's run method to be called to process messages that were just assigned to it. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private javax.jms.Session session
private boolean started
Constructor Detail |
public DefaultServerSession(javax.jms.Session session) throws javax.jms.JMSException
Method Detail |
public javax.jms.Session getSession() throws javax.jms.JMSException
getSession
in interface javax.jms.ServerSession
javax.jms.JMSException
- if a JMS error occurs.public void start()
start
in interface javax.jms.ServerSession
public void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |