org.apache.camel.component.file.strategy
Class DeleteFileStrategy
java.lang.Object
org.apache.camel.component.file.strategy.FileStategySupport
org.apache.camel.component.file.strategy.DeleteFileStrategy
- All Implemented Interfaces:
- FileStrategy
public class DeleteFileStrategy
- extends FileStategySupport
A strategy which will delete the file when its processed
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteFileStrategy
public DeleteFileStrategy()
DeleteFileStrategy
public DeleteFileStrategy(boolean lockFile)
commit
public void commit(FileEndpoint endpoint,
FileExchange exchange,
File file)
throws Exception
- Description copied from interface:
FileStrategy
- Releases any file locks and possibly deletes or moves the file
- Specified by:
commit
in interface FileStrategy
- Overrides:
commit
in class FileStategySupport
- Throws:
Exception
Copyright © 2007 Apache Software Foundation. All Rights Reserved.