public class GenericFileDeleteProcessStrategy<T> extends GenericFileProcessStrategySupport<T>
camelContext, exclusiveReadLockStrategy| Constructor and Description |
|---|
GenericFileDeleteProcessStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
org.apache.camel.Exchange exchange,
GenericFile<T> file)
Called when work is about to begin on this file.
|
void |
commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
org.apache.camel.Exchange exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after successful processing
|
GenericFileRenamer<T> |
getBeginRenamer() |
GenericFileRenamer<T> |
getFailureRenamer() |
void |
rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
org.apache.camel.Exchange exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after unsuccessful processing
|
void |
setBeginRenamer(GenericFileRenamer<T> beginRenamer) |
void |
setFailureRenamer(GenericFileRenamer<T> failureRenamer) |
abort, deleteLocalWorkFile, doShutdown, doStart, doStop, getCamelContext, getExclusiveReadLockStrategy, prepareOnStartup, renameFile, setCamelContext, setExclusiveReadLockStrategybuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic boolean begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) throws Exception
GenericFileProcessStrategybegin in interface GenericFileProcessStrategy<T>begin in class GenericFileProcessStrategySupport<T>operations - file operationsendpoint - the endpointexchange - the exchangefile - the fileException - can be thrown in case of errorspublic void commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) throws Exception
GenericFileProcessStrategycommit in interface GenericFileProcessStrategy<T>commit in class GenericFileProcessStrategySupport<T>operations - file operationsendpoint - the endpointexchange - the exchangefile - the fileException - can be thrown in case of errorspublic void rollback(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) throws Exception
GenericFileProcessStrategyrollback in interface GenericFileProcessStrategy<T>rollback in class GenericFileProcessStrategySupport<T>operations - file operationsendpoint - the endpointexchange - the exchangefile - the fileException - can be thrown in case of errorspublic GenericFileRenamer<T> getFailureRenamer()
public void setFailureRenamer(GenericFileRenamer<T> failureRenamer)
public GenericFileRenamer<T> getBeginRenamer()
public void setBeginRenamer(GenericFileRenamer<T> beginRenamer)
Apache Camel