Package org.apache.activemq.util
Class ProducerThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.activemq.util.ProducerThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected Session
session
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ProducerThread(Session session, Destination destination)
-
Method Summary
-
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
-
-
-
-
Field Detail
-
session
protected Session session
-
-
Constructor Detail
-
ProducerThread
public ProducerThread(Session session, Destination destination)
-
-
Method Detail
-
setMessageCount
public void setMessageCount(int messageCount)
-
getSleep
public int getSleep()
-
setSleep
public void setSleep(int sleep)
-
getMessageCount
public int getMessageCount()
-
getSentCount
public int getSentCount()
-
isPersistent
public boolean isPersistent()
-
setPersistent
public void setPersistent(boolean persistent)
-
isRunning
public boolean isRunning()
-
setRunning
public void setRunning(boolean running)
-
getMsgTTL
public long getMsgTTL()
-
setMsgTTL
public void setMsgTTL(long msgTTL)
-
getTransactionBatchSize
public int getTransactionBatchSize()
-
setTransactionBatchSize
public void setTransactionBatchSize(int transactionBatchSize)
-
getMsgGroupID
public String getMsgGroupID()
-
setMsgGroupID
public void setMsgGroupID(String msgGroupID)
-
getTextMessageSize
public int getTextMessageSize()
-
setTextMessageSize
public void setTextMessageSize(int textMessageSize)
-
getMessageSize
public int getMessageSize()
-
setMessageSize
public void setMessageSize(int messageSize)
-
getFinished
public CountDownLatch getFinished()
-
setFinished
public void setFinished(CountDownLatch finished)
-
getPayloadUrl
public String getPayloadUrl()
-
setPayloadUrl
public void setPayloadUrl(String payloadUrl)
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
isRunIndefinitely
public boolean isRunIndefinitely()
-
setRunIndefinitely
public void setRunIndefinitely(boolean runIndefinitely)
-
pauseProducer
public void pauseProducer()
-
resumeProducer
public void resumeProducer()
-
resetCounters
public void resetCounters()
-
-