org.apache.qpid.jms
Class FailoverPolicy

java.lang.Object
  extended by org.apache.qpid.jms.FailoverPolicy

public class FailoverPolicy
extends Object


Constructor Summary
FailoverPolicy(ConnectionURL connectionDetails, AMQConnection conn)
           
FailoverPolicy(FailoverMethod method)
           
FailoverPolicy(FailoverMethod method, int retries)
           
 
Method Summary
 void addMethod(FailoverMethod method)
           
 void attainedConnection()
          Notification that connection was successful.
 boolean failoverAllowed()
           
 BrokerDetails getCurrentBrokerDetails()
           
 FailoverMethod getCurrentMethod()
           
 BrokerDetails getNextBrokerDetails()
           
 void setBroker(BrokerDetails broker)
           
 void setMethodRetries(int retries)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FailoverPolicy

public FailoverPolicy(ConnectionURL connectionDetails,
                      AMQConnection conn)

FailoverPolicy

public FailoverPolicy(FailoverMethod method)

FailoverPolicy

public FailoverPolicy(FailoverMethod method,
                      int retries)
Method Detail

failoverAllowed

public boolean failoverAllowed()

attainedConnection

public void attainedConnection()
Notification that connection was successful.


getCurrentBrokerDetails

public BrokerDetails getCurrentBrokerDetails()

getNextBrokerDetails

public BrokerDetails getNextBrokerDetails()

setBroker

public void setBroker(BrokerDetails broker)

addMethod

public void addMethod(FailoverMethod method)

setMethodRetries

public void setMethodRetries(int retries)

getCurrentMethod

public FailoverMethod getCurrentMethod()

toString

public String toString()
Overrides:
toString in class Object


Licensed to the Apache Software Foundation