public class FileWatcherStrategy
extends org.apache.camel.support.service.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.
|
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic FileWatcherStrategy(String directory, FileWatcherStrategy.OnChangeEvent onChangeEvent)
public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic long getPollTimeout()
public void setPollTimeout(long pollTimeout)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.ServiceSupportExceptionApache Camel