|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.broker.region.policy.TimedSubscriptionRecoveryPolicy
public class TimedSubscriptionRecoveryPolicy
This implementation of SubscriptionRecoveryPolicy
will keep a timed
buffer of messages around in memory and use that to recover new
subscriptions.
Constructor Summary | |
---|---|
TimedSubscriptionRecoveryPolicy()
|
Method Summary | |
---|---|
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,
Subscription sub)
Let a subscription recover message held by the policy. |
void |
setRecoverDuration(long recoverDuration)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimedSubscriptionRecoveryPolicy()
Method Detail |
---|
public SubscriptionRecoveryPolicy copy()
SubscriptionRecoveryPolicy
copy
in interface SubscriptionRecoveryPolicy
public boolean add(ConnectionContext context, MessageReference message) throws Exception
SubscriptionRecoveryPolicy
add
in interface SubscriptionRecoveryPolicy
Exception
public void recover(ConnectionContext context, Topic topic, Subscription sub) throws Exception
SubscriptionRecoveryPolicy
recover
in interface SubscriptionRecoveryPolicy
Exception
public void start() throws Exception
start
in interface Service
Exception
public void stop() throws Exception
stop
in interface Service
Exception
public void gc()
public long getRecoverDuration()
public void setRecoverDuration(long recoverDuration)
public Message[] browse(ActiveMQDestination destination) throws Exception
browse
in interface SubscriptionRecoveryPolicy
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |