Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected Session |
session |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ProducerThread(Session session,
Destination destination,
int threadNr) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected final Session session
public ProducerThread(Session session, Destination destination, int threadNr)
protected Message createMessage(int i, String threadName) throws Exception
Exception
public ProducerThread setMessageCount(int messageCount)
public int getSleep()
public ProducerThread setSleep(int sleep)
public int getMessageCount()
public int getSentCount()
public boolean isPersistent()
public ProducerThread setPersistent(boolean persistent)
public boolean isRunning()
public ProducerThread setRunning(boolean running)
public long getMsgTTL()
public ProducerThread setMsgTTL(long msgTTL)
public int getTransactionBatchSize()
public ProducerThread setTransactionBatchSize(int transactionBatchSize)
public String getMsgGroupID()
public ProducerThread setMsgGroupID(String msgGroupID)
public int getTextMessageSize()
public ProducerThread setTextMessageSize(int textMessageSize)
public int getMessageSize()
public ProducerThread setMessageSize(int messageSize)
public ReusableLatch getFinished()
public ProducerThread setFinished(int value)
public String getPayloadUrl()
public ProducerThread setPayloadUrl(String payloadUrl)
public String getMessage()
public ProducerThread setMessage(String message)
public boolean isRunIndefinitely()
public ProducerThread setRunIndefinitely(boolean runIndefinitely)
public ProducerThread pauseProducer()
public ProducerThread resumeProducer()
public ProducerThread resetCounters()
public boolean isVerbose()
public ProducerThread setVerbose(boolean verbose)
Copyright © 2017 JBoss by Red Hat. All rights reserved.