public static class Utils.SingleConnectionSupplier extends Object implements Utils.ExceptionFunction<com.rabbitmq.client.ConnectionFactory,com.rabbitmq.client.Connection>
| Constructor and Description |
|---|
SingleConnectionSupplier(Callable<? extends com.rabbitmq.client.Connection> creationAction) |
SingleConnectionSupplier(Callable<? extends com.rabbitmq.client.Connection> creationAction,
Duration waitTimeout) |
| Modifier and Type | Method and Description |
|---|---|
com.rabbitmq.client.Connection |
apply(com.rabbitmq.client.ConnectionFactory connectionFactory) |
public SingleConnectionSupplier(Callable<? extends com.rabbitmq.client.Connection> creationAction)
public com.rabbitmq.client.Connection apply(com.rabbitmq.client.ConnectionFactory connectionFactory)
throws Exception
apply in interface Utils.ExceptionFunction<com.rabbitmq.client.ConnectionFactory,com.rabbitmq.client.Connection>Exception