| Constructor and Description |
|---|
SendOptions() |
| Modifier and Type | Method and Description |
|---|---|
SendOptions |
channelCloseHandler(java.util.function.BiConsumer<SignalType,com.rabbitmq.client.Channel> channelCloseHandler)
Set the channel closing logic.
|
SendOptions |
channelMono(Mono<? extends com.rabbitmq.client.Channel> channelMono)
Set the channel mono to use to send messages.
|
SendOptions |
channelPool(ChannelPool channelPool)
Set the channel pool to use to send messages.
|
SendOptions |
exceptionHandler(java.util.function.BiConsumer<Sender.SendContext,Exception> exceptionHandler) |
java.util.function.BiConsumer<SignalType,com.rabbitmq.client.Channel> |
getChannelCloseHandler()
Return the channel closing logic.
|
Mono<? extends com.rabbitmq.client.Channel> |
getChannelMono()
Return the channel mono to use to send messages.
|
java.util.function.BiConsumer<Sender.SendContext,Exception> |
getExceptionHandler() |
Integer |
getMaxInFlight()
Returns the maximum number of in-flight records that are fetched
from the outbound record publisher while publisher confirms are pending.
|
Scheduler |
getScheduler()
The scheduler used for publishing send results.
|
SendOptions |
maxInFlight(int maxInFlight)
Set the maximum number of in-flight records that are fetched
from the outbound record publisher while publisher confirms are pending.
|
SendOptions |
maxInFlight(int maxInFlight,
Scheduler scheduler)
Set the maximum number of in-flight records that are fetched
from the outbound record publisher while publisher confirms are pending.
|
public Integer getMaxInFlight()
public SendOptions maxInFlight(int maxInFlight)
The number of in-flight records is not limited by default.
maxInFlight - SendOptions instancepublic SendOptions maxInFlight(int maxInFlight, Scheduler scheduler)
SchedulermaxInFlight - scheduler - SendOptions instancepublic Scheduler getScheduler()
public java.util.function.BiConsumer<Sender.SendContext,Exception> getExceptionHandler()
public SendOptions exceptionHandler(java.util.function.BiConsumer<Sender.SendContext,Exception> exceptionHandler)
public Mono<? extends com.rabbitmq.client.Channel> getChannelMono()
public SendOptions channelMono(Mono<? extends com.rabbitmq.client.Channel> channelMono)
channelMono - SendOptions instancepublic java.util.function.BiConsumer<SignalType,com.rabbitmq.client.Channel> getChannelCloseHandler()
public SendOptions channelCloseHandler(java.util.function.BiConsumer<SignalType,com.rabbitmq.client.Channel> channelCloseHandler)
channelCloseHandler - SendOptions instancepublic SendOptions channelPool(ChannelPool channelPool)
It is developer's responsibility to close it if set.
channelPool - SendOptions instance