New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Channel mono #42
Channel mono #42
Conversation
@pmackowski Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@pmackowski Thank you for signing the Contributor License Agreement! |
@Override | ||
public void accept(SignalType signalType, Channel channel) { | ||
int channelNumber = channel.getChannelNumber(); | ||
LOGGER.info("closing channel {} by signal {}", channelNumber, signalType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure you want to log every channel closure as info
? Some environments have high channel churn.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to log it as debug
. It is extracted from here
channel close
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed logging level to debug
@pmackowski Thanks for this contribution! Why didn't you add a |
@acogoluegnes I did it initially but finally reverted changes in SendOptions revert commit.
Let's take exceptionHandler into account with its default value and suppose it is also defined in If you don't mind I can try to suggest some solution, unless I overlooked something. |
The one in |
Yes, it makes sense with null properties in |
This PR has been triggered by issue#41
There have been added following properties to
bothSenderOptionsand SendOptions:Mono<? extends Channel> channelMono
BiConsumer<SignalType, Channel> channelCloseHandler
There is another subtle change referring to discrepancy of caching channel creation
Sender#send
usesconnectionMono.map(CHANNEL_CREATION_FUNCTION).cache()
Sender#sendWithPublishConfirms
usesconnectionMono.map(CHANNEL_CREATION_FUNCTION)
I removed cache() in
Sender#send