public class RMQConnection extends Object implements io.dropwizard.lifecycle.Managed
| Constructor and Description |
|---|
RMQConnection(String name,
RMQConfig config,
ExecutorService executorService,
io.dropwizard.setup.Environment environment,
TtlConfig ttlConfig) |
| Modifier and Type | Method and Description |
|---|---|
com.rabbitmq.client.Channel |
channel() |
void |
ensure(String queueName,
String exchange,
Map<String,Object> rmqOpts) |
void |
ensure(String queueName,
String routingQueue,
String exchange,
Map<String,Object> rmqOpts) |
com.codahale.metrics.health.HealthCheck |
healthcheck() |
com.rabbitmq.client.Channel |
newChannel() |
Map<String,Object> |
rmqOpts(ActorConfig actorConfig) |
Map<String,Object> |
rmqOpts(String deadLetterExchange,
ActorConfig actorConfig) |
void |
start() |
void |
stop() |
public RMQConnection(String name, RMQConfig config, ExecutorService executorService, io.dropwizard.setup.Environment environment, TtlConfig ttlConfig)
public void start()
throws Exception
start in interface io.dropwizard.lifecycle.ManagedExceptionpublic void ensure(String queueName, String exchange, Map<String,Object> rmqOpts) throws Exception
Exceptionpublic void ensure(String queueName, String routingQueue, String exchange, Map<String,Object> rmqOpts) throws Exception
Exceptionpublic Map<String,Object> rmqOpts(ActorConfig actorConfig)
public Map<String,Object> rmqOpts(String deadLetterExchange, ActorConfig actorConfig)
public com.codahale.metrics.health.HealthCheck healthcheck()
public void stop()
throws Exception
stop in interface io.dropwizard.lifecycle.ManagedExceptionpublic com.rabbitmq.client.Channel channel()
public com.rabbitmq.client.Channel newChannel()
throws IOException
IOExceptionCopyright © 2016–2021. All rights reserved.