Package com.rabbitmq.client.amqp
Interface Environment
- All Superinterfaces:
AutoCloseable
The
Environment
is the main entry point to a node or a cluster of nodes.
The connectionBuilder()
allows creating Connection
instances. An application
is expected to maintain a single Environment
instance and to close with it exits.
Environment
instances are expected to be thread-safe.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the environment and its resources.Create a builder to configure and create aConnection
.
-
Method Details
-
connectionBuilder
ConnectionBuilder connectionBuilder()Create a builder to configure and create aConnection
.- Returns:
-
close
void close()Close the environment and its resources.- Specified by:
close
in interfaceAutoCloseable
-