Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mom4j.jms
Class ReceiverWorker  view ReceiverWorker download ReceiverWorker.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.mom4j.jms.ReceiverWorker
All Implemented Interfaces:
java.lang.Runnable

public class ReceiverWorker
extends java.lang.Thread

Version:
$Revision: 1.1.1.1 $ $Date: 2003/07/04 12:48:49 $

Field Summary
private  MessageConsumerImpl consumer
           
private  boolean isStopped
           
private  javax.jms.MessageListener listener
           
private  java.lang.Object object
           
private  long sleepInterval
           
private  boolean stop
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ReceiverWorker(javax.jms.MessageListener listener, MessageConsumerImpl consumer, long sleepInterval)
          Creates new ReceiverWorker
 
Method Summary
 boolean isRunning()
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 void stopListener()
           
 
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, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

listener

private javax.jms.MessageListener listener

consumer

private MessageConsumerImpl consumer

object

private java.lang.Object object

stop

private boolean stop

isStopped

private boolean isStopped

sleepInterval

private long sleepInterval
Constructor Detail

ReceiverWorker

public ReceiverWorker(javax.jms.MessageListener listener,
                      MessageConsumerImpl consumer,
                      long sleepInterval)
Creates new ReceiverWorker

Method Detail

run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.


isRunning

public boolean isRunning()

stopListener

public void stopListener()