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, waitgetConnection, getSupportedInterfacesprotected final StatisticsImpl statistics
public AbstractConnectionService(Integer autoReconnectDelay, boolean lazyActivation)
public void setConnectCallbackHandler(CallbackHandler callbackHandler)
setConnectCallbackHandler in interface ConnectionServiceprotected void setConnection(Connection connection)
public void dispose()
dispose in interface ConnectionServicepublic AutoReconnectController getAutoReconnectController()
getAutoReconnectController in interface ConnectionServiceprotected boolean shouldConnect()
protected void checkConnect()
public void connect()
connect in interface ConnectionServiceprotected void performConnect()
public void disconnect()
disconnect in interface ConnectionServiceprotected void performDisconnect()
public String getLabel()
getLabel in interface ConnectionInformationProviderpublic Collection<StatisticEntry> getStatistics()
getStatistics in interface ConnectionInformationProvider