org.apache.camel.component.file.strategy
Class DeleteFileProcessStrategy

java.lang.Object
  extended by org.apache.camel.component.file.strategy.FileProcessStrategySupport
      extended by 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: 1273 $

Constructor Summary
DeleteFileProcessStrategy()
           
DeleteFileProcessStrategy(boolean lockFile)
           
 
Method Summary
 void commit(FileEndpoint endpoint, FileExchange exchange, File file)
          Releases any file locks and possibly deletes or moves the file after successful processing
 
Methods inherited from class org.apache.camel.component.file.strategy.FileProcessStrategySupport
begin, getLockFileRenamer, isLockFile, rollback, setLockFile, setLockFileRenamer, unlockFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteFileProcessStrategy

public DeleteFileProcessStrategy()

DeleteFileProcessStrategy

public DeleteFileProcessStrategy(boolean lockFile)
Method Detail

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 after successful processing

Specified by:
commit in interface FileProcessStrategy
Overrides:
commit in class FileProcessStrategySupport
Parameters:
endpoint - the endpoint
exchange - the exchange
file - the file
Throws:
Exception - can be thrown in case of errors


Copyright © 2009 IONA Open Source Community. All Rights Reserved.