public class GenericFileDeleteProcessStrategy<T> extends GenericFileProcessStrategySupport<T>
exclusiveReadLockStrategy, log
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, getExclusiveReadLockStrategy, prepareOnStartup, renameFile, setExclusiveReadLockStrategy
public GenericFileDeleteProcessStrategy()
public boolean begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, Exchange exchange, GenericFile<T> file) throws Exception
GenericFileProcessStrategy
begin
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
GenericFileProcessStrategy
commit
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
GenericFileProcessStrategy
rollback
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