public class LastImageSubscriptionRecoveryPolicy extends Object implements SubscriptionRecoveryPolicy
SubscriptionRecoveryPolicy will only keep the
last message.| Constructor and Description |
|---|
LastImageSubscriptionRecoveryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ConnectionContext context,
MessageReference node)
A message was sent to the destination.
|
Message[] |
browse(ActiveMQDestination destination) |
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) |
void |
start() |
void |
stop() |
public boolean add(ConnectionContext context, MessageReference node) throws Exception
SubscriptionRecoveryPolicyadd in interface SubscriptionRecoveryPolicyExceptionpublic void recover(ConnectionContext context, Topic topic, SubscriptionRecovery sub) throws Exception
SubscriptionRecoveryPolicyrecover in interface SubscriptionRecoveryPolicyExceptionpublic void start()
throws Exception
public Message[] browse(ActiveMQDestination destination) throws Exception
browse in interface SubscriptionRecoveryPolicyExceptionpublic SubscriptionRecoveryPolicy copy()
SubscriptionRecoveryPolicycopy in interface SubscriptionRecoveryPolicypublic void setBroker(Broker broker)
setBroker in interface SubscriptionRecoveryPolicyCopyright © 2005-2014 The Apache Software Foundation. All Rights Reserved.