Package interlok.rabbitmq
Class RabbitMqConnection
java.lang.Object
com.adaptris.core.AdaptrisConnectionImp
interlok.rabbitmq.RabbitMqConnection
- All Implemented Interfaces:
AdaptrisComponent,AdaptrisConnection,ComponentLifecycle,ComponentLifecycleExtension,StateManagedComponent,ConnectionWrapper
@ComponentProfile(summary="Connection to RabbitMQ")
public class RabbitMqConnection
extends AdaptrisConnectionImp
implements ConnectionWrapper
Wraps a connection for RabbitMQ.
-
Field Summary
Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConfigures the underlyingcom.rabbitmq.client.ConnectionFactorywhich is responsible for creatingConnectionprotected voidprotected voidvoidsetFactoryBuilder(ConnectionFactoryBuilder factoryBuilder) Configures the underlyingcom.rabbitmq.client.ConnectionFactorywhich is responsible for creatingConnectionprotected voidprotected void<T extends RabbitMqConnection>
TwithErrorHandler(ExceptionHandlerImpl excHandler) <T extends RabbitMqConnection>
Tcom.rabbitmq.client.ConnectionMethods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
-
Constructor Details
-
RabbitMqConnection
public RabbitMqConnection()
-
-
Method Details
-
prepareConnection
- Specified by:
prepareConnectionin classAdaptrisConnectionImp- Throws:
CoreException
-
initConnection
- Specified by:
initConnectionin classAdaptrisConnectionImp- Throws:
CoreException
-
startConnection
- Specified by:
startConnectionin classAdaptrisConnectionImp- Throws:
CoreException
-
stopConnection
protected void stopConnection()- Specified by:
stopConnectionin classAdaptrisConnectionImp
-
closeConnection
protected void closeConnection()- Specified by:
closeConnectionin classAdaptrisConnectionImp
-
wrappedConnection
public com.rabbitmq.client.Connection wrappedConnection()- Specified by:
wrappedConnectionin interfaceConnectionWrapper- Returns:
- the wrapped connection.
-
connectionFactoryBuilder
- Specified by:
connectionFactoryBuilderin interfaceConnectionWrapper- Returns:
- the wrapped connection factory builder.
-
withFactoryBuilder
-
withErrorHandler
-
getFactoryBuilder
Configures the underlyingcom.rabbitmq.client.ConnectionFactorywhich is responsible for creatingConnection -
setFactoryBuilder
Configures the underlyingcom.rabbitmq.client.ConnectionFactorywhich is responsible for creatingConnection
-