Class RabbitMQPublisherOptions
java.lang.Object
io.vertx.rabbitmq.RabbitMQPublisherOptions
RabbitMQ client options, most
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerThe default connection retries =Integer.MAX_VALUEstatic final longThe default connection retry delay =10000 -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionintlongsetMaxInternalQueueSize(int maxInternalQueueSize) setReconnectAttempts(Integer reconnectAttempts) Set the number of reconnect attempts to attempt when connecting, thenullvalue disables it.setReconnectInterval(long reconnectInterval) Set the delay in milliseconds between connection retries.
-
Field Details
-
DEFAULT_RECONNECT_INTERVAL
public static final long DEFAULT_RECONNECT_INTERVALThe default connection retry delay =10000- See Also:
-
DEFAULT_RECONNECT_ATTEMPTS
The default connection retries =Integer.MAX_VALUE
-
-
Constructor Details
-
RabbitMQPublisherOptions
public RabbitMQPublisherOptions() -
RabbitMQPublisherOptions
-
RabbitMQPublisherOptions
-
-
Method Details
-
getReconnectAttempts
- Returns:
- the number of reconnect attempts
-
setReconnectAttempts
Set the number of reconnect attempts to attempt when connecting, thenullvalue disables it.- Parameters:
reconnectAttempts- the number of retries- Returns:
- a reference to this, so the API can be used fluently
-
getReconnectInterval
public long getReconnectInterval()- Returns:
- the delay in milliseconds between connection retries
-
setReconnectInterval
Set the delay in milliseconds between connection retries.- Parameters:
reconnectInterval- the delay in milliseconds- Returns:
- a reference to this, so the API can be used fluently
-
getMaxInternalQueueSize
public int getMaxInternalQueueSize()- Returns:
- the size of internal queue
-
setMaxInternalQueueSize
- Parameters:
maxInternalQueueSize- the size of internal queue- Returns:
- a reference to this, so the API can be used fluently
-