org.apache.activemq.broker.region.policy
Class NoSubscriptionRecoveryPolicy

java.lang.Object
  extended by org.apache.activemq.broker.region.policy.NoSubscriptionRecoveryPolicy
All Implemented Interfaces:
SubscriptionRecoveryPolicy, Service

public class NoSubscriptionRecoveryPolicy
extends Object
implements SubscriptionRecoveryPolicy

This SubscriptionRecoveryPolicy disable recovery of messages.


Constructor Summary
NoSubscriptionRecoveryPolicy()
           
 
Method Summary
 boolean add(ConnectionContext context, MessageReference node)
          A message was sent to the destination.
 Message[] browse(ActiveMQDestination dest)
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoSubscriptionRecoveryPolicy

public NoSubscriptionRecoveryPolicy()
Method Detail

copy

public SubscriptionRecoveryPolicy copy()
Description copied from interface: SubscriptionRecoveryPolicy
Used to copy the policy object.

Specified by:
copy in interface SubscriptionRecoveryPolicy
Returns:
the copy

add

public boolean add(ConnectionContext context,
                   MessageReference node)
            throws Exception
Description copied from interface: SubscriptionRecoveryPolicy
A message was sent to the destination.

Specified by:
add in interface SubscriptionRecoveryPolicy
Returns:
true if successful
Throws:
Exception

recover

public void recover(ConnectionContext context,
                    Topic topic,
                    SubscriptionRecovery sub)
             throws Exception
Description copied from interface: SubscriptionRecoveryPolicy
Let a subscription recover message held by the policy.

Specified by:
recover in interface SubscriptionRecoveryPolicy
Throws:
Exception

start

public void start()
           throws Exception
Specified by:
start in interface Service
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface Service
Throws:
Exception

browse

public Message[] browse(ActiveMQDestination dest)
                 throws Exception
Specified by:
browse in interface SubscriptionRecoveryPolicy
Returns:
messages
Throws:
Exception

setBroker

public void setBroker(Broker broker)
Specified by:
setBroker in interface SubscriptionRecoveryPolicy


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.