public class SimpleReconnectStrategy extends AbstractReconnectStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG
The 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.
|
copyPending, getConfig, getConnectionFactory, getSelector, getState, isConnected, setConfig, setConnectionFactory, setSelector, setStateprotected static final Logger 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-2013 Allanbank Consulting, Inc.. All Rights Reserved.