public class TimedSubscriptionRecoveryPolicy extends java.lang.Object implements SubscriptionRecoveryPolicy
SubscriptionRecoveryPolicy will keep a timed
buffer of messages around in memory and use that to recover new
subscriptions.| Constructor and Description |
|---|
TimedSubscriptionRecoveryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ConnectionContext context,
MessageReference message)
A message was sent to the destination.
|
Message[] |
browse(ActiveMQDestination destination) |
SubscriptionRecoveryPolicy |
copy()
Used to copy the policy object.
|
void |
gc() |
long |
getRecoverDuration() |
void |
recover(ConnectionContext context,
Topic topic,
SubscriptionRecovery sub)
Let a subscription recover message held by the policy.
|
void |
setBroker(Broker broker) |
void |
setRecoverDuration(long recoverDuration) |
void |
start() |
void |
stop() |
public SubscriptionRecoveryPolicy copy()
SubscriptionRecoveryPolicycopy in interface SubscriptionRecoveryPolicypublic boolean add(ConnectionContext context, MessageReference message) throws java.lang.Exception
SubscriptionRecoveryPolicyadd in interface SubscriptionRecoveryPolicyjava.lang.Exceptionpublic void recover(ConnectionContext context, Topic topic, SubscriptionRecovery sub) throws java.lang.Exception
SubscriptionRecoveryPolicyrecover in interface SubscriptionRecoveryPolicyjava.lang.Exceptionpublic void setBroker(Broker broker)
setBroker in interface SubscriptionRecoveryPolicypublic void start()
throws java.lang.Exception
public void stop()
throws java.lang.Exception
public void gc()
public long getRecoverDuration()
public void setRecoverDuration(long recoverDuration)
public Message[] browse(ActiveMQDestination destination) throws java.lang.Exception
browse in interface SubscriptionRecoveryPolicyjava.lang.ExceptionCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.