public class GenericFileDeleteProcessStrategy<T> extends GenericFileProcessStrategySupport<T>
camelContext, exclusiveReadLockStrategy, logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
GenericFileDeleteProcessStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file)
Called when work is about to begin on this file.
|
void |
commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
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,
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, setExclusiveReadLockStrategydoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic GenericFileDeleteProcessStrategy()
public boolean begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, 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, 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, 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