camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-3520) File consumer should let user specify readlock checking period
Date Tue, 11 Jan 2011 07:25:47 GMT

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

Claus Ibsen resolved CAMEL-3520.
--------------------------------

    Resolution: Fixed

trunk: 1057505.

Thanks for the patch. I updated the wiki documentation as well.

> File consumer should let user specify readlock checking period
> --------------------------------------------------------------
>
>                 Key: CAMEL-3520
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3520
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>         Environment: Linux 64bits
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
>            Reporter: Pham Ngoc Hai
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.6.0
>
>         Attachments: FileEndpointReadLockCheckInterval.patch
>
>
> Currently the only reliable readLock that we can use is "changed", but even with that,
the default setting is 1 second which is not long enough if the file is being written to very
slowly. So we have to provide a exclusiveReadLockStrategy which is exactly the same as FileChangedExclusiveReadLockStrategy
with a longer sleep time.
> It'll be great if we can have an option like readLockCheckInterval so users can specify
how long the file should be checked again.
> Something like:
> from("file:/data/inbox?readLock=changed&readLockCheckInterval=5000&readLockTimeout=60000")

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message