Class ProducerThread

  • All Implemented Interfaces:
    Runnable

    public class ProducerThread
    extends Thread
    • Field Detail

      • session

        protected final javax.jms.Session session
    • Constructor Detail

      • ProducerThread

        public ProducerThread​(javax.jms.Session session,
                              javax.jms.Destination destination,
                              int threadNr,
                              ActionContext context)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • createMessage

        protected javax.jms.Message createMessage​(long i,
                                                  String threadName)
                                           throws Exception
        Throws:
        Exception
      • applyProperties

        protected void applyProperties​(javax.jms.Message message)
                                throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • setMessageCount

        public ProducerThread setMessageCount​(long messageCount)
      • getSleep

        public int getSleep()
      • getMessageCount

        public long getMessageCount()
      • getSentCount

        public long getSentCount()
      • isPersistent

        public boolean isPersistent()
      • setPersistent

        public ProducerThread setPersistent​(boolean persistent)
      • isRunning

        public boolean isRunning()
      • getMsgTTL

        public long getMsgTTL()
      • getTransactionBatchSize

        public int getTransactionBatchSize()
      • setTransactionBatchSize

        public ProducerThread setTransactionBatchSize​(int transactionBatchSize)
      • getMsgGroupID

        public String getMsgGroupID()
      • getTextMessageSize

        public int getTextMessageSize()
      • setTextMessageSize

        public ProducerThread setTextMessageSize​(int textMessageSize)
      • getMessageSize

        public int getMessageSize()
      • setMessageSize

        public ProducerThread setMessageSize​(int messageSize)
      • getPayloadUrl

        public String getPayloadUrl()
      • getMessage

        public String getMessage()
      • isRunIndefinitely

        public boolean isRunIndefinitely()
      • setRunIndefinitely

        public ProducerThread setRunIndefinitely​(boolean runIndefinitely)
      • isVerbose

        public boolean isVerbose()
      • getObjectSize

        public int getObjectSize()
      • setObjectSize

        public ProducerThread setObjectSize​(int objectSize)