mirror of https://github.com/apache/activemq.git
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:
parent
6dc44747b4
commit
730aef4d1e
|
@ -29,8 +29,8 @@ import org.apache.activemq.command.ConsumerInfo;
|
||||||
* @version $Revision: 1.1 $
|
* @version $Revision: 1.1 $
|
||||||
*/
|
*/
|
||||||
public class DemandSubscription {
|
public class DemandSubscription {
|
||||||
private ConsumerInfo remoteInfo;
|
private final ConsumerInfo remoteInfo;
|
||||||
private ConsumerInfo localInfo;
|
private final ConsumerInfo localInfo;
|
||||||
private Set<ConsumerId> remoteSubsIds = new CopyOnWriteArraySet<ConsumerId>();
|
private Set<ConsumerId> remoteSubsIds = new CopyOnWriteArraySet<ConsumerId>();
|
||||||
private AtomicInteger dispatched = new AtomicInteger(0);
|
private AtomicInteger dispatched = new AtomicInteger(0);
|
||||||
|
|
||||||
|
@ -104,25 +104,11 @@ public class DemandSubscription {
|
||||||
return localInfo;
|
return localInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param localInfo The localInfo to set.
|
|
||||||
*/
|
|
||||||
public void setLocalInfo(ConsumerInfo localInfo) {
|
|
||||||
this.localInfo = localInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Returns the remoteInfo.
|
* @return Returns the remoteInfo.
|
||||||
*/
|
*/
|
||||||
public ConsumerInfo getRemoteInfo() {
|
public ConsumerInfo getRemoteInfo() {
|
||||||
return remoteInfo;
|
return remoteInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param remoteInfo The remoteInfo to set.
|
|
||||||
*/
|
|
||||||
public void setRemoteInfo(ConsumerInfo remoteInfo) {
|
|
||||||
this.remoteInfo = remoteInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue