Interface SubscriptionRecovery
- All Known Subinterfaces:
Subscription
- All Known Implementing Classes:
AbstractSubscription,DurableTopicSubscription,PrefetchSubscription,QueueBrowserSubscription,QueueSubscription,TopicSubscription
public interface SubscriptionRecovery
An interface for recoverying transient messages held by the broker for
retractive recovery for subscribers
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddRecoveredMessage(ConnectionContext context, org.apache.activemq.broker.region.MessageReference message) Add a message to the SubscriptionRecoveryorg.apache.activemq.command.ActiveMQDestination
-
Method Details
-
addRecoveredMessage
boolean addRecoveredMessage(ConnectionContext context, org.apache.activemq.broker.region.MessageReference message) throws Exception Add a message to the SubscriptionRecovery- Parameters:
context-message-- Returns:
- true if the message is accepted
- Throws:
Exception
-
getActiveMQDestination
org.apache.activemq.command.ActiveMQDestination getActiveMQDestination()- Returns:
- the Destination associated with this Subscription
-