Package org.apache.activemq.network
Class DemandSubscription
- java.lang.Object
-
- org.apache.activemq.network.DemandSubscription
-
public class DemandSubscription extends Object
Represents a network bridge interface
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(org.apache.activemq.command.ConsumerId id)
Increment the consumers associated with this subscriptionboolean
addForcedDurableConsumer(org.apache.activemq.command.ConsumerId id)
void
decrementOutstandingResponses()
Set<org.apache.activemq.command.SubscriptionInfo>
getDurableRemoteSubs()
int
getForcedDurableConsumersSize()
org.apache.activemq.command.SubscriptionInfo
getLocalDurableSubscriber()
org.apache.activemq.command.ConsumerInfo
getLocalInfo()
org.apache.activemq.command.NetworkBridgeFilter
getNetworkBridgeFilter()
org.apache.activemq.command.ConsumerInfo
getRemoteInfo()
boolean
incrementOutstandingResponses()
boolean
isEmpty()
boolean
isStaticallyIncluded()
boolean
remove(org.apache.activemq.command.ConsumerId id)
Increment the consumers associated with this subscriptionboolean
removeForcedDurableConsumer(org.apache.activemq.command.ConsumerId id)
void
setLocalDurableSubscriber(org.apache.activemq.command.SubscriptionInfo localDurableSubscriber)
void
setNetworkBridgeFilter(org.apache.activemq.command.NetworkBridgeFilter networkBridgeFilter)
void
setStaticallyIncluded(boolean staticallyIncluded)
int
size()
String
toString()
void
waitForCompletion()
-
-
-
Method Detail
-
add
public boolean add(org.apache.activemq.command.ConsumerId id)
Increment the consumers associated with this subscription- Parameters:
id
-- Returns:
- true if added
-
remove
public boolean remove(org.apache.activemq.command.ConsumerId id)
Increment the consumers associated with this subscription- Parameters:
id
-- Returns:
- true if removed
-
getDurableRemoteSubs
public Set<org.apache.activemq.command.SubscriptionInfo> getDurableRemoteSubs()
-
isEmpty
public boolean isEmpty()
- Returns:
- true if there are no interested consumers
-
size
public int size()
-
getLocalInfo
public org.apache.activemq.command.ConsumerInfo getLocalInfo()
- Returns:
- Returns the localInfo.
-
getRemoteInfo
public org.apache.activemq.command.ConsumerInfo getRemoteInfo()
- Returns:
- Returns the remoteInfo.
-
addForcedDurableConsumer
public boolean addForcedDurableConsumer(org.apache.activemq.command.ConsumerId id)
-
removeForcedDurableConsumer
public boolean removeForcedDurableConsumer(org.apache.activemq.command.ConsumerId id)
-
getForcedDurableConsumersSize
public int getForcedDurableConsumersSize()
-
waitForCompletion
public void waitForCompletion()
-
decrementOutstandingResponses
public void decrementOutstandingResponses()
-
incrementOutstandingResponses
public boolean incrementOutstandingResponses()
-
getNetworkBridgeFilter
public org.apache.activemq.command.NetworkBridgeFilter getNetworkBridgeFilter()
-
setNetworkBridgeFilter
public void setNetworkBridgeFilter(org.apache.activemq.command.NetworkBridgeFilter networkBridgeFilter)
-
getLocalDurableSubscriber
public org.apache.activemq.command.SubscriptionInfo getLocalDurableSubscriber()
-
setLocalDurableSubscriber
public void setLocalDurableSubscriber(org.apache.activemq.command.SubscriptionInfo localDurableSubscriber)
-
isStaticallyIncluded
public boolean isStaticallyIncluded()
-
setStaticallyIncluded
public void setStaticallyIncluded(boolean staticallyIncluded)
-
-