Class RabbitMqTransport
java.lang.Object
org.acemq.amqp.transport.rabbitmq.RabbitMqTransport
- All Implemented Interfaces:
Transport
AMQP 0-9-1 transport backed by the RabbitMQ Java client.
Discovered through ServiceLoader, so putting this module on the
classpath is all it takes for amqp:// URLs to work.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnect(ConnectionConfig config) Opens a connection.name()scheme()schemes()Every scheme this transport answers to.
-
Constructor Details
-
RabbitMqTransport
public RabbitMqTransport()
-
-
Method Details
-
scheme
-
schemes
Description copied from interface:TransportEvery scheme this transport answers to.Exists because
amqps://is the same transport asamqp://with the connection encrypted, not a different one, and a library where the secure URL fails to resolve is a library that teaches people to use the insecure one.- Specified by:
schemesin interfaceTransport- Returns:
- the schemes, which must include
Transport.scheme()
-
name
-
capabilities
- Specified by:
capabilitiesin interfaceTransport- Returns:
- what brokers reachable through this transport can do
-
connect
Description copied from interface:TransportOpens a connection.- Specified by:
connectin interfaceTransport- Parameters:
config- connection settings;ConnectionConfig.scheme()must matchTransport.scheme()- Returns:
- an open connection
-