Class ProducerThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.activemq.artemis.cli.commands.messages.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 javax.jms.Sessionsession-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ProducerThread(javax.jms.Session session, javax.jms.Destination destination, int threadNr)
-
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
-
-
-
-
Method Detail
-
createMessage
protected javax.jms.Message createMessage(int i, String threadName) throws Exception- Throws:
Exception
-
setMessageCount
public ProducerThread setMessageCount(int messageCount)
-
getSleep
public int getSleep()
-
setSleep
public ProducerThread setSleep(int sleep)
-
getMessageCount
public int getMessageCount()
-
getSentCount
public int getSentCount()
-
isPersistent
public boolean isPersistent()
-
setPersistent
public ProducerThread setPersistent(boolean persistent)
-
isRunning
public boolean isRunning()
-
setRunning
public ProducerThread setRunning(boolean running)
-
getMsgTTL
public long getMsgTTL()
-
setMsgTTL
public ProducerThread setMsgTTL(long msgTTL)
-
getTransactionBatchSize
public int getTransactionBatchSize()
-
setTransactionBatchSize
public ProducerThread setTransactionBatchSize(int transactionBatchSize)
-
getMsgGroupID
public String getMsgGroupID()
-
setMsgGroupID
public ProducerThread setMsgGroupID(String msgGroupID)
-
getTextMessageSize
public int getTextMessageSize()
-
setTextMessageSize
public ProducerThread setTextMessageSize(int textMessageSize)
-
getMessageSize
public int getMessageSize()
-
setMessageSize
public ProducerThread setMessageSize(int messageSize)
-
getFinished
public ReusableLatch getFinished()
-
setFinished
public ProducerThread setFinished(int value)
-
getPayloadUrl
public String getPayloadUrl()
-
setPayloadUrl
public ProducerThread setPayloadUrl(String payloadUrl)
-
getMessage
public String getMessage()
-
setMessage
public ProducerThread setMessage(String message)
-
isRunIndefinitely
public boolean isRunIndefinitely()
-
setRunIndefinitely
public ProducerThread setRunIndefinitely(boolean runIndefinitely)
-
pauseProducer
public ProducerThread pauseProducer()
-
resumeProducer
public ProducerThread resumeProducer()
-
resetCounters
public ProducerThread resetCounters()
-
isVerbose
public boolean isVerbose()
-
setVerbose
public ProducerThread setVerbose(boolean verbose)
-
getObjectSize
public int getObjectSize()
-
setObjectSize
public ProducerThread setObjectSize(int objectSize)
-
-