1 18 package org.apache.activemq.tool.properties; 19 20 public class JmsConsumerProperties extends JmsClientProperties { 21 public static final String TIME_BASED_RECEIVING = "time"; public static final String COUNT_BASED_RECEIVING = "count"; 24 protected boolean durable = false; protected boolean unsubscribe = true; protected boolean asyncRecv = true; 28 protected long recvCount = 1000000; protected long recvDuration = 5 * 60 * 1000; protected String recvType = TIME_BASED_RECEIVING; 31 32 public boolean isDurable() { 33 return durable; 34 } 35 36 public void setDurable(boolean durable) { 37 this.durable = durable; 38 } 39 40 public boolean isUnsubscribe() { 41 return unsubscribe; 42 } 43 44 public void setUnsubscribe(boolean unsubscribe) { 45 this.unsubscribe = unsubscribe; 46 } 47 48 public boolean isAsyncRecv() { 49 return asyncRecv; 50 } 51 52 public void setAsyncRecv(boolean asyncRecv) { 53 this.asyncRecv = asyncRecv; 54 } 55 56 public long getRecvCount() { 57 return recvCount; 58 } 59 60 public void setRecvCount(long recvCount) { 61 this.recvCount = recvCount; 62 } 63 64 public long getRecvDuration() { 65 return recvDuration; 66 } 67 68 public void setRecvDuration(long recvDuration) { 69 this.recvDuration = recvDuration; 70 } 71 72 public String getRecvType() { 73 return recvType; 74 } 75 76 public void setRecvType(String recvType) { 77 this.recvType = recvType; 78 } 79 } 80 | Popular Tags |