org.apache.qpid.jms
Class FailoverPolicy
java.lang.Object
org.apache.qpid.jms.FailoverPolicy
public class FailoverPolicy
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FailoverPolicy
public FailoverPolicy(ConnectionURL connectionDetails,
org.apache.qpid.client.AMQConnection conn)
FailoverPolicy
public FailoverPolicy(org.apache.qpid.jms.failover.FailoverMethod method)
FailoverPolicy
public FailoverPolicy(org.apache.qpid.jms.failover.FailoverMethod method,
int retries)
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(org.apache.qpid.jms.failover.FailoverMethod method)
setMethodRetries
public void setMethodRetries(int retries)
getCurrentMethod
public org.apache.qpid.jms.failover.FailoverMethod getCurrentMethod()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object