make local and remote info final

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@675260 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-07-09 17:10:46 +00:00
parent 6dc44747b4
commit 730aef4d1e
1 changed files with 4 additions and 18 deletions

View File

@ -29,8 +29,8 @@ import org.apache.activemq.command.ConsumerInfo;
* @version $Revision: 1.1 $
*/
public class DemandSubscription {
private ConsumerInfo remoteInfo;
private ConsumerInfo localInfo;
private final ConsumerInfo remoteInfo;
private final ConsumerInfo localInfo;
private Set<ConsumerId> remoteSubsIds = new CopyOnWriteArraySet<ConsumerId>();
private AtomicInteger dispatched = new AtomicInteger(0);
@ -104,12 +104,6 @@ public class DemandSubscription {
return localInfo;
}
/**
* @param localInfo The localInfo to set.
*/
public void setLocalInfo(ConsumerInfo localInfo) {
this.localInfo = localInfo;
}
/**
* @return Returns the remoteInfo.
@ -117,12 +111,4 @@ public class DemandSubscription {
public ConsumerInfo getRemoteInfo() {
return remoteInfo;
}
/**
* @param remoteInfo The remoteInfo to set.
*/
public void setRemoteInfo(ConsumerInfo remoteInfo) {
this.remoteInfo = remoteInfo;
}
}