public interface SubscriptionRecoveryPolicy extends org.apache.activemq.Service
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ConnectionContext context,
org.apache.activemq.broker.region.MessageReference message)
A message was sent to the destination.
|
org.apache.activemq.command.Message[] |
browse(org.apache.activemq.command.ActiveMQDestination dest) |
SubscriptionRecoveryPolicy |
copy()
Used to copy the policy object.
|
void |
recover(ConnectionContext context,
Topic topic,
SubscriptionRecovery sub)
Let a subscription recover message held by the policy.
|
void |
setBroker(Broker broker) |
boolean add(ConnectionContext context, org.apache.activemq.broker.region.MessageReference message) throws Exception
context - message - Exceptionvoid recover(ConnectionContext context, Topic topic, SubscriptionRecovery sub) throws Exception
context - topic - sub - Exceptionorg.apache.activemq.command.Message[] browse(org.apache.activemq.command.ActiveMQDestination dest) throws Exception
dest - ExceptionSubscriptionRecoveryPolicy copy()
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.