public class SimpleReconnectStrategy extends AbstractReconnectStrategy
| Modifier and Type | Field and Description | 
|---|---|
| protected static Log | LOGThe logger for the  SimpleReconnectStrategy. | 
myConfig, myConnectionFactory, mySelector, myState| Constructor and Description | 
|---|
| SimpleReconnectStrategy()Creates a new SimpleReconnectStrategy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Connection | reconnect(Connection oldConnection)Encapsulates the strategy for re-establishing the connection to the
 server. | 
getConfig, getConnectionFactory, getSelector, getState, isConnected, setConfig, setConnectionFactory, setSelector, setStateprotected static final Log LOG
SimpleReconnectStrategy.public SimpleReconnectStrategy()
public Connection reconnect(Connection oldConnection)
Overridden to try and connect to every server selected by the ServerSelector until one of the connections is successful.
oldConnection - The connection that has become disconnected.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.