rabbitmq connection.abort()vs connection.close()
关闭和流产兔子连接有什么区别? Java Docs API指南对每个指南都使用相同的描述。该代码似乎使连接打开(并创建一个新的连接):
if(!connection.isOpen())
{
connection.abort();
connection = factory.newConnection();
}
可以接近一个优雅的关闭,但是立即中止了?
What is the difference between closing and aborting a RabbitMQ connection? The Java Docs API guide uses the same description for each. This code seems to leave the connection open (and create a new one):
if(!connection.isOpen())
{
connection.abort();
connection = factory.newConnection();
}
Is close possible a graceful shutdown, but abort immediate?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论