|
||||||||||
| 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
public class DefaultServerSession
DefaultServerSession is a default implementation of
the JMS ServerSession interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| 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, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
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
javax.jms.JMSException| Method Detail |
|---|
public javax.jms.Session getSession()
throws javax.jms.JMSException
getSession in interface javax.jms.ServerSessionjavax.jms.JMSException - if a JMS error occurs.public void start()
start in interface javax.jms.ServerSessionstart in class java.lang.Threadpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||