You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/05/25 07:29:00 UTC

[jira] [Resolved] (CAMEL-18142) New PollExceptionStrategy interface

     [ https://issues.apache.org/jira/browse/CAMEL-18142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-18142.
---------------------------------
    Resolution: Invalid

Please ask on user mailing list, or the zulip chat room

> New PollExceptionStrategy interface
> -----------------------------------
>
>                 Key: CAMEL-18142
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18142
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-kafka
>    Affects Versions: 3.17.0
>            Reporter: Rafał Gała
>            Priority: Minor
>
> I have a question regarding changes in PollExceptionStrategy interface. Currently I have my own PollExceptionStrategy implementation that look like this:
>  
>  
> {code:java}
>     @Override
>     public PollOnError handleException(Exception exception) {
>       if (exception instanceof TopicAuthorizationException) {
>         return PollOnError.STOP;
>       } else {         
>         return PollOnError.RETRY;
>       }
>     }{code}
>  
>  
> How can I achieve the same with the new interface version? The handle method now returns void and canContinue method is not aware of the exception so it is not possible to return false in case of TopicAuthorizationException and true in case of any others.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)