public abstract class ConnectionErrorHandlerImp extends java.lang.Object implements ConnectionErrorHandler
Behaviour common to ConnectionErrorHandler
s.
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
ConnectionErrorHandlerImp() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowedInConjunctionWith(ConnectionErrorHandler ceh)
Is this error handler allowed to work with this error handler.
|
protected java.util.List<Channel> |
getRegisteredChannels() |
void |
registerConnection(AdaptrisConnection connection)
Sets the
AdaptrisConnection to handle errors for. |
protected void |
restartAffectedComponents()
Standard functionality to restart the owner of the connection.
|
<T> T |
retrieveConnection(java.lang.Class<T> type)
Return this components underlying connection.
|
protected long |
retryWaitTimeMs()
Milliseconds to wait for before retrying a restart.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleConnectionException
close, init, start, stop
public void registerConnection(AdaptrisConnection connection)
ConnectionErrorHandler
Sets the AdaptrisConnection
to handle errors for.
registerConnection
in interface ConnectionErrorHandler
connection
- the AdaptrisConnection
to handle errors forpublic <T> T retrieveConnection(java.lang.Class<T> type)
ConnectionErrorHandler
retrieveConnection
in interface ConnectionErrorHandler
type
- the type of connectionpublic boolean allowedInConjunctionWith(ConnectionErrorHandler ceh)
ConnectionErrorHandler
allowedInConjunctionWith
in interface ConnectionErrorHandler
ceh
- other error handler.protected long retryWaitTimeMs()
protected void restartAffectedComponents()
protected java.util.List<Channel> getRegisteredChannels()