@ProviderType
public static interface SolaceProperties.QueueBrowserProperties
MessageQueueBrowser
instances. The properties are for use with implementation of MessageQueueBrowserBuilder.fromProperties(Properties)
.
Example usage:
final Properties browserProperties = new Properties();
browserProperties.setProperty(QueueBrowserProperties.QUEUE_BROWSER_WINDOW_SIZE, "50");
browserProperties.setProperty(QueueBrowserProperties.QUEUE_BROWSER_RECONNECTION_ATTEMPTS, "5");
final MessagingService service = new MessagingServiceClientBuilder(ConfigurationProfile.V1).build();
final MessageQueueBrowserBuilder messageBrowserBuilder = service.createMessageQueueBrowserBuilder();
final Queue endpointToConsumeFrom = Queue.durableExclusiveQueue("testQueue");
final MessageQueueBrowser browser = messageBrowserBuilder.fromProperties(browserProperties).build(endpointToConsumeFrom);
MessageQueueBrowserBuilder.fromProperties(Properties)
Modifier and Type | Field and Description |
---|---|
static String |
QUEUE_BROWSER_MESSAGE_SELECTOR_QUERY
A property key to specify the message-selection query for a queue browser based on the
message header parameter and message properties values.
|
static String |
QUEUE_BROWSER_RECONNECTION_ATTEMPTS
Property key to specify the number of times to attempt to reconnect to an endpoint after the
initial bound flow goes down.
|
static String |
QUEUE_BROWSER_RECONNECTION_ATTEMPTS_WAIT_INTERVAL
Property key to specify the time (in ms) to wait between each attempt to reconnect from a
queue browser to an endpoint.
|
static String |
QUEUE_BROWSER_WINDOW_SIZE
A property key to specify a maximum number of messages that can be pre-fetched by the queue
browser.
|
@PropertiesKey(target=MessageQueueBrowser.class, valueType=java.lang.String.class) static final String QUEUE_BROWSER_MESSAGE_SELECTOR_QUERY
@PropertiesKey(target=MessageQueueBrowser.class, valueType=int.class) static final String QUEUE_BROWSER_RECONNECTION_ATTEMPTS
The valid value range is from -1 to Integer.MAX_VALUE
. A value of -1 indicates
the infinite retry. Default value is -1. Setting this property is optional.
@PropertiesKey(target=MessageQueueBrowser.class, valueType=int.class) static final String QUEUE_BROWSER_RECONNECTION_ATTEMPTS_WAIT_INTERVAL
The valid value range is from 50 to Integer.MAX_VALUE
. Default value is 3000.
Setting this property is optional.
@PropertiesKey(target=MessageQueueBrowser.class, valueType=int.class) static final String QUEUE_BROWSER_WINDOW_SIZE
Copyright 2019-2024 Solace Corporation. All rights reserved.