public class SimpleReconnectStrategy extends AbstractReconnectStrategy
|Modifier and Type||Field and Description|
The logger for the
|Constructor and Description|
Creates a new SimpleReconnectStrategy.
|Modifier and Type||Method and Description|
Encapsulates the strategy for re-establishing the connection to the server.
getConfig, getConnectionFactory, getSelector, getState, isConnected, setConfig, setConnectionFactory, setSelector, setState
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.