Package com.rabbitmq.client.amqp
Interface Connection
- All Superinterfaces:
AutoCloseable
,Closeable
,Resource
A connection to the broker.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rabbitmq.client.amqp.Resource
Resource.Context, Resource.State, Resource.StateListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the connection and its resourcesCreate a builder to configure and create aConsumer
.TheManagement
instance of this connection.Create a builder to configure and create aPublisher
.Create a builder to configure and create aRpcClientBuilder
.Create a builder to configure and create aRpcServerBuilder
.
-
Method Details
-
management
Management management()TheManagement
instance of this connection.- Returns:
- management instance
-
publisherBuilder
PublisherBuilder publisherBuilder()Create a builder to configure and create aPublisher
.- Returns:
- publisher builder
-
consumerBuilder
ConsumerBuilder consumerBuilder()Create a builder to configure and create aConsumer
.- Returns:
- consumer builder
-
rpcClientBuilder
RpcClientBuilder rpcClientBuilder()Create a builder to configure and create aRpcClientBuilder
.- Returns:
- RPC client builder
-
rpcServerBuilder
RpcServerBuilder rpcServerBuilder()Create a builder to configure and create aRpcServerBuilder
.- Returns:
- RPC server builder
-
close
void close()Close the connection and its resources- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-