1 18 package org.apache.activemq.tool.properties; 19 20 public class JmsProducerProperties extends JmsClientProperties { 21 public static final String TIME_BASED_SENDING = "time"; public static final String COUNT_BASED_SENDING = "count"; public static final String DELIVERY_MODE_PERSISTENT = "persistent"; public static final String DELIVERY_MODE_NON_PERSISTENT = "nonpersistent"; 26 protected String deliveryMode = DELIVERY_MODE_NON_PERSISTENT; protected int messageSize = 1024; protected long sendCount = 1000000; protected long sendDuration = 5 * 60 * 1000; protected String sendType = TIME_BASED_SENDING; 31 protected boolean createNewMsg = false; 33 public String getDeliveryMode() { 34 return deliveryMode; 35 } 36 37 public void setDeliveryMode(String deliveryMode) { 38 this.deliveryMode = deliveryMode; 39 } 40 41 public int getMessageSize() { 42 return messageSize; 43 } 44 45 public void setMessageSize(int messageSize) { 46 this.messageSize = messageSize; 47 } 48 49 public long getSendCount() { 50 return sendCount; 51 } 52 53 public void setSendCount(long sendCount) { 54 this.sendCount = sendCount; 55 } 56 57 public long getSendDuration() { 58 return sendDuration; 59 } 60 61 public void setSendDuration(long sendDuration) { 62 this.sendDuration = sendDuration; 63 } 64 65 public String getSendType() { 66 return sendType; 67 } 68 69 public void setSendType(String sendType) { 70 this.sendType = sendType; 71 } 72 73 public boolean isCreateNewMsg() { 74 return createNewMsg; 75 } 76 77 public void setCreateNewMsg(boolean createNewMsg) { 78 this.createNewMsg = createNewMsg; 79 } 80 } 81 | Popular Tags |