Interface FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointConsumerBuilder, org.apache.camel.EndpointConsumerResolver
    Enclosing interface:
    FileWatchEndpointBuilderFactory

    public static interface FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder
    extends org.apache.camel.builder.EndpointConsumerBuilder
    Builder for endpoint for the File Watch component.
    • Method Detail

      • antInclude

        default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder antInclude​(String antInclude)
        ANT style pattern to match files. The file is matched against path relative to endpoint path. Pattern must be also relative (not starting with slash). The option is a: java.lang.String type. Default: ** Group: consumer
      • bridgeErrorHandler

        default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder bridgeErrorHandler​(boolean bridgeErrorHandler)
        Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: boolean type. Default: false Group: consumer
      • bridgeErrorHandler

        default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder bridgeErrorHandler​(String bridgeErrorHandler)
        Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a boolean type. Default: false Group: consumer
      • concurrentConsumers

        default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder concurrentConsumers​(int concurrentConsumers)
        The number of concurrent consumers. Increase this value, if your route is slow to prevent buffering in queue. The option is a: int type. Default: 1 Group: consumer
      • concurrentConsumers

        default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder concurrentConsumers​(String concurrentConsumers)
        The number of concurrent consumers. Increase this value, if your route is slow to prevent buffering in queue. The option will be converted to a int type. Default: 1 Group: consumer
      • fileHasher

        default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder fileHasher​(Object fileHasher)
        Reference to io.methvin.watcher.hashing.FileHasher. This prevents emitting duplicate events on some platforms. For working with large files and if you dont need detect multiple modifications per second per file, use #lastModifiedTimeFileHasher. You can also provide custom implementation in registry. The option is a: io.methvin.watcher.hashing.FileHasher type. Default: #murmur3FFileHasher Group: consumer
      • fileHasher

        default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder fileHasher​(String fileHasher)
        Reference to io.methvin.watcher.hashing.FileHasher. This prevents emitting duplicate events on some platforms. For working with large files and if you dont need detect multiple modifications per second per file, use #lastModifiedTimeFileHasher. You can also provide custom implementation in registry. The option will be converted to a io.methvin.watcher.hashing.FileHasher type. Default: #murmur3FFileHasher Group: consumer
      • useFileHashing

        default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder useFileHashing​(boolean useFileHashing)
        Enables or disables file hashing to detect duplicate events. If you disable this, you can get some events multiple times on some platforms and JDKs. Check java.nio.file.WatchService limitations for your target platform. The option is a: boolean type. Default: true Group: consumer
      • useFileHashing

        default FileWatchEndpointBuilderFactory.FileWatchEndpointBuilder useFileHashing​(String useFileHashing)
        Enables or disables file hashing to detect duplicate events. If you disable this, you can get some events multiple times on some platforms and JDKs. Check java.nio.file.WatchService limitations for your target platform. The option will be converted to a boolean type. Default: true Group: consumer