public class GenericFileRenameProcessStrategy<T> extends GenericFileProcessStrategySupport<T>
exclusiveReadLockStrategy, log| Constructor and Description |
|---|
GenericFileRenameProcessStrategy() |
| 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> |
getCommitRenamer() |
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 |
setCommitRenamer(GenericFileRenamer<T> commitRenamer) |
void |
setFailureRenamer(GenericFileRenamer<T> failureRenamer) |
abort, deleteLocalWorkFile, getExclusiveReadLockStrategy, prepareOnStartup, renameFile, setExclusiveReadLockStrategypublic GenericFileRenameProcessStrategy()
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 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 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 GenericFileRenamer<T> getBeginRenamer()
public void setBeginRenamer(GenericFileRenamer<T> beginRenamer)
public GenericFileRenamer<T> getCommitRenamer()
public void setCommitRenamer(GenericFileRenamer<T> commitRenamer)
public GenericFileRenamer<T> getFailureRenamer()
public void setFailureRenamer(GenericFileRenamer<T> failureRenamer)
Apache Camel