Class ConsumerThread
java.lang.Object
java.lang.Thread
org.apache.activemq.artemis.cli.commands.messages.ConsumerThread
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionConsumerThread(javax.jms.Session session, javax.jms.Destination destination, int threadNr, ActionContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidbrowse()voidconsume()intlongintintintgetSleep()booleanbooleanisBrowse()booleanbooleanbooleanbooleanvoidrun()setBatchSize(int batchSize) setBreakOnNull(boolean breakOnNull) setBrowse(boolean browse) setBytesAsText(boolean bytesAsText) setDurable(boolean durable) setFinished(CountDownLatch finished) voidsetListener(javax.jms.MessageListener listener) setMessageCount(long messageCount) setReceiveTimeOut(int receiveTimeOut) setRunning(boolean running) setSleep(int sleep) setVerbose(boolean verbose) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
ConsumerThread
public ConsumerThread(javax.jms.Session session, javax.jms.Destination destination, int threadNr, ActionContext context)
-
-
Method Details
-
run
public void run() -
browse
public void browse() -
consume
public void consume() -
getReceived
public int getReceived() -
isDurable
public boolean isDurable() -
setDurable
-
setMessageCount
-
setBreakOnNull
-
getBatchSize
public int getBatchSize() -
setBatchSize
-
getMessageCount
public long getMessageCount() -
isBreakOnNull
public boolean isBreakOnNull() -
getReceiveTimeOut
public int getReceiveTimeOut() -
setReceiveTimeOut
-
isRunning
public boolean isRunning() -
setRunning
-
getSleep
public int getSleep() -
setSleep
-
getFinished
-
setFinished
-
isBytesAsText
public boolean isBytesAsText() -
isVerbose
public boolean isVerbose() -
setVerbose
-
setBytesAsText
-
getFilter
-
setFilter
-
isBrowse
public boolean isBrowse() -
setBrowse
-
setListener
public void setListener(javax.jms.MessageListener listener)
-