Package interlok.rabbitmq
Class RabbitMqConnection
java.lang.Object
com.adaptris.core.AdaptrisConnectionImp
interlok.rabbitmq.RabbitMqConnection
- All Implemented Interfaces:
com.adaptris.core.AdaptrisComponent,com.adaptris.core.AdaptrisConnection,com.adaptris.core.ComponentLifecycle,com.adaptris.core.ComponentLifecycleExtension,com.adaptris.core.StateManagedComponent,ConnectionWrapper
@ComponentProfile(summary="Connection to RabbitMQ")
public class RabbitMqConnection
extends com.adaptris.core.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, connectionStateHandler, getConnectionErrorHandler, getConnectionStateHandler, getRuntimeComponent, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setConnectionStateHandler, setRuntimeComponent, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
-
Constructor Details
-
RabbitMqConnection
public RabbitMqConnection()
-
-
Method Details
-
prepareConnection
protected void prepareConnection() throws com.adaptris.core.CoreException- Specified by:
prepareConnectionin classcom.adaptris.core.AdaptrisConnectionImp- Throws:
com.adaptris.core.CoreException
-
initConnection
protected void initConnection() throws com.adaptris.core.CoreException- Specified by:
initConnectionin classcom.adaptris.core.AdaptrisConnectionImp- Throws:
com.adaptris.core.CoreException
-
startConnection
protected void startConnection() throws com.adaptris.core.CoreException- Specified by:
startConnectionin classcom.adaptris.core.AdaptrisConnectionImp- Throws:
com.adaptris.core.CoreException
-
stopConnection
protected void stopConnection()- Specified by:
stopConnectionin classcom.adaptris.core.AdaptrisConnectionImp
-
closeConnection
protected void closeConnection()- Specified by:
closeConnectionin classcom.adaptris.core.AdaptrisConnectionImp
-
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
-