|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.exolab.jmscts.core.ThreadedAction | +--org.exolab.jmscts.core.ThreadedSender
Helper class which performs message production in a separate thread
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ThreadedSender(MessageSender sender,
javax.jms.Message message,
int count)
Construct a new ThreadedSender |
|
ThreadedSender(MessageSender sender,
javax.jms.Message message,
int count,
CompletionListener listener)
Construct a new ThreadedSender |
Method Summary | |
void |
runProtected()
Run the action |
Methods inherited from class org.exolab.jmscts.core.ThreadedAction |
getElapsedTime, getException, run, setException, waitForCompletion, waitForCompletion |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ThreadedSender(MessageSender sender, javax.jms.Message message, int count)
ThreadedSender
sender
- the message sendermessage
- the message to sendcount
- the no. of times to send the messagepublic ThreadedSender(MessageSender sender, javax.jms.Message message, int count, CompletionListener listener)
ThreadedSender
sender
- the message sendermessage
- the message to sendcount
- the no. of times to send the messagelistener
- the listener to notify on completionMethod Detail |
public void runProtected() throws java.lang.Exception
runProtected
in class ThreadedAction
java.lang.Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |