org.apache.camel.component.file.strategy
Class DeleteFileProcessStrategy
java.lang.Object
org.apache.camel.component.file.strategy.FileProcessStrategySupport
org.apache.camel.component.file.strategy.DeleteFileProcessStrategy
- All Implemented Interfaces:
- FileProcessStrategy
public class DeleteFileProcessStrategy
- extends FileProcessStrategySupport
A strategy which will delete the file when its processed
- Version:
- $Revision: 35332 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteFileProcessStrategy
public DeleteFileProcessStrategy()
DeleteFileProcessStrategy
public DeleteFileProcessStrategy(boolean lockFile)
commit
public void commit(FileEndpoint endpoint,
FileExchange exchange,
File file)
throws Exception
- Description copied from interface:
FileProcessStrategy
- Releases any file locks and possibly deletes or moves the file
- Specified by:
commit
in interface FileProcessStrategy
- Overrides:
commit
in class FileProcessStrategySupport
- Parameters:
endpoint
- the endpointexchange
- the exchangefile
- the file
- Throws:
Exception
- can be thrown in case of errors
Copyright © 2008 IONA Open Source Community. All Rights Reserved.