THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- TimeStamp - (default) when the consumer starts up, it uses the current time as the starting point. Any files currently in the grid are ignored, only files added after the consumer start are processed. After polling, the consumer updates it's timestamp with the timestamp of the newest file processed.
- PersistentTimestamp - when the consumer starts up, it queries the collection specified by the persistentTSCollection parameter for the object given by the persistentTSObject parameter to use as the starting timestamp. If the object doesn't exist, it uses the current time and creates the object. After each file processed, the timestamp in the collection is updated.
- FileAttribute - instead of timestamps, the consumer will query gridfs for files that don't have the attribute given by the fileAttributeName parameter. When the file starts to be processed by the consumer, the attribute is added to the file in the gridfs.
- TimestampAndFileAttribute - finds files that are newer than the TimeStamp and are missing the attribute. Adds the attribute to the file when processing.
- PersistentTimestampAndFileAttribute - finds files that are newer than the TimeStamp and are missing the attribute. Adds the attribute to the file when processing and updates the persistent timestamp.
Code Block | ||
---|---|---|
| ||
from("gridfs?database=tickets&queryStrategy=FileAttribute").process(.....); from("gridfs?database=myData&queryStrategy=PersistentTimestamp&persistentTSCollection=CamelTimestamps&persistentTSObject=myDataTS").process(...) |
...