public class FileWatcherStrategy
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.CamelContextAware
Modifier and Type | Class and Description |
---|---|
static interface |
FileWatcherStrategy.OnChangeEvent |
protected class |
FileWatcherStrategy.WatchFileChangesTask
Background task which watches for file changes
|
Constructor and Description |
---|
FileWatcherStrategy(String directory,
FileWatcherStrategy.OnChangeEvent onChangeEvent) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
long |
getPollTimeout() |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setPollTimeout(long pollTimeout)
Sets the poll timeout in millis.
|
public FileWatcherStrategy(String directory, FileWatcherStrategy.OnChangeEvent onChangeEvent)
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public long getPollTimeout()
public void setPollTimeout(long pollTimeout)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.ServiceSupport
Exception
Apache Camel