org.apache.camel.component.file.strategy
Class RenameFileProcessStrategy
java.lang.Object
org.apache.camel.component.file.strategy.FileProcessStrategySupport
org.apache.camel.component.file.strategy.RenameFileProcessStrategy
- All Implemented Interfaces:
- FileProcessStrategy
public class RenameFileProcessStrategy
- extends FileProcessStrategySupport
A strategy to rename a file
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenameFileProcessStrategy
public RenameFileProcessStrategy()
RenameFileProcessStrategy
public RenameFileProcessStrategy(boolean lock)
RenameFileProcessStrategy
public RenameFileProcessStrategy(boolean lock,
String namePrefix,
String namePostfix)
RenameFileProcessStrategy
public RenameFileProcessStrategy(boolean lock,
FileRenamer renamer)
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
- Throws:
Exception
getRenamer
public FileRenamer getRenamer()
setRenamer
public void setRenamer(FileRenamer renamer)
Copyright © 2007 Apache Software Foundation. All Rights Reserved.