public class FixedCountSubscriptionRecoveryPolicy extends java.lang.Object implements SubscriptionRecoveryPolicy
SubscriptionRecoveryPolicy will keep a fixed
count of last messages.| Constructor and Description |
|---|
FixedCountSubscriptionRecoveryPolicy() |
| 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.
|
int |
getMaximumSize() |
void |
recover(ConnectionContext context,
Topic topic,
SubscriptionRecovery sub)
Let a subscription recover message held by the policy.
|
void |
setBroker(Broker broker) |
void |
setMaximumSize(int maximumSize)
Sets the maximum number of messages that this destination will hold
around in RAM
|
void |
start() |
void |
stop() |
public FixedCountSubscriptionRecoveryPolicy()
public SubscriptionRecoveryPolicy copy()
SubscriptionRecoveryPolicycopy in interface SubscriptionRecoveryPolicypublic boolean add(ConnectionContext context, MessageReference node) 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 start()
throws java.lang.Exception
public void stop()
throws java.lang.Exception
public int getMaximumSize()
public void setMaximumSize(int maximumSize)
public Message[] browse(ActiveMQDestination destination) throws java.lang.Exception
browse in interface SubscriptionRecoveryPolicyjava.lang.Exceptionpublic void setBroker(Broker broker)
setBroker in interface SubscriptionRecoveryPolicyCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.