public abstract class AbstractConnectionService extends Object implements ConnectionService, ConnectionInformationProvider
Modifier and Type | Field and Description |
---|---|
protected StatisticsImpl |
statistics |
CONNECTION_URI
Constructor and Description |
---|
AbstractConnectionService(Integer autoReconnectDelay,
boolean lazyActivation) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkConnect() |
void |
connect() |
void |
disconnect() |
void |
dispose() |
AutoReconnectController |
getAutoReconnectController() |
String |
getLabel() |
Collection<StatisticEntry> |
getStatistics() |
protected void |
performConnect() |
protected void |
performDisconnect() |
void |
setConnectCallbackHandler(CallbackHandler callbackHandler) |
protected void |
setConnection(Connection connection) |
protected boolean |
shouldConnect() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnection, getSupportedInterfaces
protected final StatisticsImpl statistics
public AbstractConnectionService(Integer autoReconnectDelay, boolean lazyActivation)
public void setConnectCallbackHandler(CallbackHandler callbackHandler)
setConnectCallbackHandler
in interface ConnectionService
protected void setConnection(Connection connection)
public void dispose()
dispose
in interface ConnectionService
public AutoReconnectController getAutoReconnectController()
getAutoReconnectController
in interface ConnectionService
protected boolean shouldConnect()
protected void checkConnect()
public void connect()
connect
in interface ConnectionService
protected void performConnect()
public void disconnect()
disconnect
in interface ConnectionService
protected void performDisconnect()
public String getLabel()
getLabel
in interface ConnectionInformationProvider
public Collection<StatisticEntry> getStatistics()
getStatistics
in interface ConnectionInformationProvider