org.apache.qpid.jms.failover
Class NoFailover

java.lang.Object
  extended by org.apache.qpid.jms.failover.FailoverSingleServer
      extended by org.apache.qpid.jms.failover.NoFailover
All Implemented Interfaces:
FailoverMethod

public class NoFailover
extends FailoverSingleServer

Extend the Single Server Model to gain retry functionality but once connected do not attempt to failover.


Field Summary
 
Fields inherited from class org.apache.qpid.jms.failover.FailoverSingleServer
_currentRetries, _retries, DEFAULT_SERVER_RETRIES
 
Fields inherited from interface org.apache.qpid.jms.failover.FailoverMethod
FAILOVER_EXCHANGE, NO_FAILOVER, RANDOM, ROUND_ROBIN, SINGLE_BROKER
 
Constructor Summary
NoFailover(BrokerDetails brokerDetail)
           
NoFailover(ConnectionURL connectionDetails)
           
 
Method Summary
 void attainedConnection()
          Notification to the Failover method that a connection has been attained.
 String methodName()
           
 String toString()
           
 
Methods inherited from class org.apache.qpid.jms.failover.FailoverSingleServer
failoverAllowed, getCurrentBrokerDetails, getNextBrokerDetails, reset, setBroker, setRetries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoFailover

public NoFailover(BrokerDetails brokerDetail)

NoFailover

public NoFailover(ConnectionURL connectionDetails)
Method Detail

attainedConnection

public void attainedConnection()
Description copied from interface: FailoverMethod
Notification to the Failover method that a connection has been attained.

Specified by:
attainedConnection in interface FailoverMethod
Overrides:
attainedConnection in class FailoverSingleServer

methodName

public String methodName()
Specified by:
methodName in interface FailoverMethod
Overrides:
methodName in class FailoverSingleServer
Returns:
The name of this method for display purposes.

toString

public String toString()
Overrides:
toString in class FailoverSingleServer


Licensed to the Apache Software Foundation