org.activemq.service.boundedvm
Class DurableSubscription
java.lang.Object
org.activemq.service.boundedvm.DurableSubscription
- Direct Known Subclasses:
- DurableQueueSubscription
public abstract class DurableSubscription
- extends Object
A holder for Durable consumer info and message routing
- Version:
- $Revision: 1.1.1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filter
protected Filter filter
consumerInfo
protected ConsumerInfo consumerInfo
client
protected BrokerClient client
brokerName
protected String brokerName
clusterName
protected String clusterName
DurableSubscription
public DurableSubscription(Filter filter,
ConsumerInfo info,
BrokerClient client)
- Construct the DurableSubscription
- Parameters:
filter
- info
-
isTarget
public abstract boolean isTarget(ActiveMQMessage message)
throws JMSException
- determines if the Subscription is interested in the message
- Parameters:
message
-
- Returns:
- true if this Subscription will accept the message
- Throws:
JMSException
getConsumerInfo
public ConsumerInfo getConsumerInfo()
- Returns:
- Returns the consumerInfo.
setConsumerInfo
public void setConsumerInfo(ConsumerInfo consumerInfo)
- Parameters:
consumerInfo
- The consumerInfo to set.
getFilter
public Filter getFilter()
- Returns:
- Returns the filter.
setFilter
public void setFilter(Filter filter)
- Parameters:
filter
- The filter to set.
close
public void close()
- close the subscription
getDestination
public ActiveMQDestination getDestination()
- Returns:
- Returns the destination.
isLocalSubscription
public boolean isLocalSubscription()
- Returns:
- true if this subscription is for a non-broker consumer
Copyright © 2004-2008 Protique, Ltd.. All Rights Reserved.