Class RestClientNodeLocator
java.lang.Object
org.springframework.amqp.rabbit.connection.RestClientNodeLocator
- All Implemented Interfaces:
NodeLocator<RestClient>
A
NodeLocator using the RestClient.- Since:
- 4.2
- Author:
- Rene Choi
-
Field Summary
Fields inherited from interface org.springframework.amqp.rabbit.connection.NodeLocator
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateClient(String userName, String password) Create a client for subsequent use.restCall(RestClient client, String baseUri, String vhost, String queue) Retrieve a map of queue properties using the RabbitMQ Management REST API.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.amqp.rabbit.connection.NodeLocator
close, locate
-
Constructor Details
-
RestClientNodeLocator
public RestClientNodeLocator()
-
-
Method Details
-
createClient
Description copied from interface:NodeLocatorCreate a client for subsequent use.- Specified by:
createClientin interfaceNodeLocator<RestClient>- Parameters:
userName- the username.password- the password.- Returns:
- the client.
-
restCall
public @Nullable Map<String,Object> restCall(RestClient client, String baseUri, String vhost, String queue) Description copied from interface:NodeLocatorRetrieve a map of queue properties using the RabbitMQ Management REST API.- Specified by:
restCallin interfaceNodeLocator<RestClient>- Parameters:
client- the client.baseUri- the base uri.vhost- the virtual host.queue- the queue name.- Returns:
- the map of queue properties.
-