1 26 package org.objectweb.joram.client.jms.admin; 27 28 36 public class Subscription { 37 40 private String name; 41 42 45 private String topicId; 46 47 50 private int messageCount; 51 52 55 private boolean durable; 56 57 60 public Subscription(String name, 61 String topicId, 62 int messageCount, 63 boolean durable) { 64 this.name = name; 65 this.topicId = topicId; 66 this.messageCount = messageCount; 67 this.durable = durable; 68 } 69 70 75 public final String getName() { 76 return name; 77 } 78 79 84 public final String getTopicId() { 85 return topicId; 86 } 87 88 93 public final int getMessageCount() { 94 return messageCount; 95 } 96 97 102 public final boolean isDurable() { 103 return durable; 104 } 105 106 109 public String toString() { 110 StringBuffer buff = new StringBuffer (); 111 buff.append("Subscription("); 112 buff.append("name="); 113 buff.append(name); 114 buff.append(",topicId="); 115 buff.append(topicId); 116 buff.append(",messageCount="); 117 buff.append(messageCount); 118 buff.append(",durable="); 119 buff.append(durable); 120 buff.append(")"); 121 return buff.toString(); 122 } 123 } 124 | Popular Tags |