Package com.adaptris.core.jms
Class JmsConnectionErrorHandlerImpl
- java.lang.Object
-
- com.adaptris.core.ConnectionErrorHandlerImp
-
- com.adaptris.core.jms.JmsConnectionErrorHandlerImpl
-
- All Implemented Interfaces:
ComponentLifecycle
,ConnectionErrorHandler
- Direct Known Subclasses:
ActiveJmsConnectionErrorHandler
,JmsConnectionErrorHandler
public abstract class JmsConnectionErrorHandlerImpl extends ConnectionErrorHandlerImp
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
idForLogging
-
Fields inherited from class com.adaptris.core.ConnectionErrorHandlerImp
log
-
-
Constructor Summary
Constructors Constructor Description JmsConnectionErrorHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowedInConjunctionWith(ConnectionErrorHandler ceh)
Is this error handler allowed to work with this error handler.boolean
equals(java.lang.Object obj)
void
handleConnectionException()
Handle the error.int
hashCode()
void
init()
Initialises the component.-
Methods inherited from class com.adaptris.core.ConnectionErrorHandlerImp
getRegisteredChannels, registerConnection, restartAffectedComponents, retrieveConnection, retryWaitTimeMs
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, start, stop
-
-
-
-
Method Detail
-
init
public void init() throws CoreException
Description copied from interface:ComponentLifecycle
Initialises the component.Component initialisation includes config verification, creation of connections etc.
- Throws:
CoreException
- wrapping any underlyingException
s
-
handleConnectionException
public void handleConnectionException()
Description copied from interface:ConnectionErrorHandler
Handle the error.
-
allowedInConjunctionWith
public boolean allowedInConjunctionWith(ConnectionErrorHandler ceh)
Description copied from interface:ConnectionErrorHandler
Is this error handler allowed to work with this error handler.- Specified by:
allowedInConjunctionWith
in interfaceConnectionErrorHandler
- Overrides:
allowedInConjunctionWith
in classConnectionErrorHandlerImp
- Parameters:
ceh
- other error handler.- Returns:
- true if the two error handlers can work together.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-