Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
akka camel 消费者中的 autoAck 返回布尔值 true 或 false。
如果autoAck = true,那么当消息进入消费者邮箱但在消费者处理消息之前,消费者怎么做?
当autoAck=true发送者不会等待消息被消费者actor处理时。换句话说,以下发送将立即返回:
autoAck=true
camel.template.asyncSendBody("direct:my-endpoint", "some message").get(timeoutDuration.toSeconds, TimeUnit.SECONDS)
当autoAck=false上述get将阻塞,直到您发送Ack或Failure或超时。
autoAck=false
get
Ack
Failure