User: chirino
Date: 01/07/27 17:33:37
Added: src/main/org/jbossmq DurableSubcriptionID.java
Log:
Once again many changes.
- The logic that handled the processing of queue and topic messages
was seperated our more to make it easier to follow.
- A QueuedTask class was created to avoid unneeded processing of queues.
- The interface between the client-server-queues-peristence manager to handel
DurableSubscription was too verbose, created a DurableSubscripton class and now
SpyTopics can be inspected to see if they are being used as a DurableSubscription
- The MBeans that add queues and topics makes it simpler to configure a queue/topic.
Revision Changes Path
1.1 jbossmq/src/main/org/jbossmq/DurableSubcriptionID.java
Index: DurableSubcriptionID.java
===================================================================
package org.jbossmq;
/*
* JBossMQ, the OpenSource JMS implementation
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
import java.io.Serializable;
/**
*
* @author Norbert Lataille ([EMAIL PROTECTED])
* @author Hiram Chirino ([EMAIL PROTECTED])
*
* @version $Revision: 1.1 $
*/
public class DurableSubcriptionID implements java.io.Serializable {
String clientID;
String subscriptionName;
public DurableSubcriptionID(String id, String subName) {
clientID= id;
subscriptionName= subName;
}
public boolean equals(Object obj) {
try {
DurableSubcriptionID o = (DurableSubcriptionID)obj;
return o.clientID.equals(clientID) &&
o.subscriptionName.equals(subscriptionName);
} catch ( Throwable e ) {
return false;
}
}
/**
* Insert the method's description here.
* Creation date: (7/27/2001 12:40:57 AM)
* @return java.lang.String
*/
public java.lang.String getClientID() {
return clientID;
}
/**
* Insert the method's description here.
* Creation date: (7/27/2001 12:40:57 AM)
* @return java.lang.String
*/
public java.lang.String getSubscriptionName() {
return subscriptionName;
}
public int hashCode() {
return
Integer.MIN_VALUE+clientID.hashCode()+subscriptionName.hashCode();
}
/**
* Insert the method's description here.
* Creation date: (7/27/2001 12:40:57 AM)
* @param newClientID java.lang.String
*/
public void setClientID(java.lang.String newClientID) {
clientID = newClientID;
}
/**
* Insert the method's description here.
* Creation date: (7/27/2001 12:40:57 AM)
* @param newSubscriptionName java.lang.String
*/
public void setSubscriptionName(java.lang.String newSubscriptionName) {
subscriptionName = newSubscriptionName;
}
public String toString() {
return clientID + "-" + subscriptionName;
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development