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/03/29 08:18:00 UTC

[jira] [Commented] (CAMEL-17869) camel-file : prePollCheck

    [ https://issues.apache.org/jira/browse/CAMEL-17869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17513911#comment-17513911 ] 

Claus Ibsen commented on CAMEL-17869:
-------------------------------------

There is the file filter today that can filter per directory, you can then use that to skip the entire directory and its sub dirs. The filter can be java code so you have the powers to do whatever check you want

> camel-file : prePollCheck
> -------------------------
>
>                 Key: CAMEL-17869
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17869
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-file
>            Reporter: Guillaume LECROC
>            Priority: Minor
>
> I would like to perfom some test before starting polling a directory, in my case check a file that is used to stop monitoring a directory.
> I find the method "prePollCheck" that always return true.
> Could it be possible to have a prePollStrategy ?
>  
> Best regards,
> Guillaume



--
This message was sent by Atlassian Jira
(v8.20.1#820001)