简体   繁体   中英

Camel SEDA Dismiss messages if the queue is full

I'm trying to use a SEDA queue (size 1) and I'd like all messages sent to that queue to be dismissed if it is full (silently, without throwing an exception).

Is there any way I could achieve that?

Ah there is no option on seda to make this easy. I have created a ticket for this: https://issues.apache.org/jira/browse/CAMEL-14235

Currently what you can do is to catch the illegal state exception and then ignore it, or in your camel route, you can do a doTry .. doCatch around sending to the seda endpoint etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM