Class WebFluxNodeLocator
- java.lang.Object
-
- org.springframework.amqp.rabbit.connection.WebFluxNodeLocator
-
- All Implemented Interfaces:
LocalizedQueueConnectionFactory.NodeLocator<WebClient>
public class WebFluxNodeLocator extends java.lang.Object implements LocalizedQueueConnectionFactory.NodeLocator<WebClient>
ALocalizedQueueConnectionFactory.NodeLocator
using the Spring WebFluxWebClient
.- Since:
- 2.4.8
- Author:
- Gary Russell
-
-
Field Summary
-
Fields inherited from interface org.springframework.amqp.rabbit.connection.LocalizedQueueConnectionFactory.NodeLocator
LOGGER
-
-
Constructor Summary
Constructors Constructor Description WebFluxNodeLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebClient
createClient(java.lang.String username, java.lang.String password)
Create a client instance.java.util.Map<java.lang.String,java.lang.Object>
restCall(WebClient client, java.lang.String baseUri, java.lang.String vhost, java.lang.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, wait
-
Methods inherited from interface org.springframework.amqp.rabbit.connection.LocalizedQueueConnectionFactory.NodeLocator
close, locate
-
-
-
-
Method Detail
-
restCall
@Nullable public java.util.Map<java.lang.String,java.lang.Object> restCall(WebClient client, java.lang.String baseUri, java.lang.String vhost, java.lang.String queue) throws java.net.URISyntaxException
Description copied from interface:LocalizedQueueConnectionFactory.NodeLocator
Retrieve a map of queue properties using the RabbitMQ Management REST API.- Specified by:
restCall
in interfaceLocalizedQueueConnectionFactory.NodeLocator<WebClient>
- Parameters:
client
- the client.baseUri
- the base uri.vhost
- the virtual host.queue
- the queue name.- Returns:
- the map of queue properties.
- Throws:
java.net.URISyntaxException
- if the syntax is bad.
-
createClient
public WebClient createClient(java.lang.String username, java.lang.String password)
Create a client instance.- Specified by:
createClient
in interfaceLocalizedQueueConnectionFactory.NodeLocator<WebClient>
- Parameters:
username
- the usernamepassword
- the password.- Returns:
- The client.
-
-