public class QueryBasedSubscriptionRecoveryPolicy extends Object implements SubscriptionRecoveryPolicy
SubscriptionRecoveryPolicy will perform a user
specific query mechanism to load any messages they may have missed.| Constructor and Description |
|---|
QueryBasedSubscriptionRecoveryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ConnectionContext context,
MessageReference message)
A message was sent to the destination.
|
Message[] |
browse(ActiveMQDestination dest) |
protected void |
configure(ActiveMQMessage msg) |
SubscriptionRecoveryPolicy |
copy()
Used to copy the policy object.
|
protected ProducerId |
createProducerId() |
protected void |
dispatchInitialMessage(Message message,
Destination regionDestination,
ConnectionContext context,
SubscriptionRecovery sub) |
MessageQuery |
getQuery() |
void |
recover(ConnectionContext context,
Topic topic,
SubscriptionRecovery sub)
Let a subscription recover message held by the policy.
|
void |
setBroker(Broker broker) |
void |
setQuery(MessageQuery query)
Sets the query strategy to load initial messages
|
void |
start() |
void |
stop() |
public QueryBasedSubscriptionRecoveryPolicy()
public SubscriptionRecoveryPolicy copy()
SubscriptionRecoveryPolicycopy in interface SubscriptionRecoveryPolicypublic boolean add(ConnectionContext context, MessageReference message) throws Exception
SubscriptionRecoveryPolicyadd in interface SubscriptionRecoveryPolicyExceptionpublic void recover(ConnectionContext context, Topic topic, SubscriptionRecovery sub) throws Exception
SubscriptionRecoveryPolicyrecover in interface SubscriptionRecoveryPolicyExceptionpublic MessageQuery getQuery()
public void setQuery(MessageQuery query)
public Message[] browse(ActiveMQDestination dest) throws Exception
browse in interface SubscriptionRecoveryPolicyExceptionpublic void setBroker(Broker broker)
setBroker in interface SubscriptionRecoveryPolicyprotected void dispatchInitialMessage(Message message, Destination regionDestination, ConnectionContext context, SubscriptionRecovery sub)
protected void configure(ActiveMQMessage msg) throws JMSException
JMSExceptionprotected ProducerId createProducerId()
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.