org.apache.camel.component.file.strategy
Class GenericFileDeleteProcessStrategy<T>

java.lang.Object
  extended by org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport<T>
      extended by org.apache.camel.component.file.strategy.GenericFileDeleteProcessStrategy<T>
All Implemented Interfaces:
GenericFileProcessStrategy<T>

public class GenericFileDeleteProcessStrategy<T>
extends GenericFileProcessStrategySupport<T>


Field Summary
 
Fields inherited from class org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport
exclusiveReadLockStrategy, log
 
Constructor Summary
GenericFileDeleteProcessStrategy()
           
 
Method Summary
 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
 
Methods inherited from class org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport
begin, getExclusiveReadLockStrategy, prepareOnStartup, rollback, setExclusiveReadLockStrategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericFileDeleteProcessStrategy

public GenericFileDeleteProcessStrategy()
Method Detail

commit

public void commit(GenericFileOperations<T> operations,
                   GenericFileEndpoint<T> endpoint,
                   Exchange exchange,
                   GenericFile<T> file)
            throws Exception
Description copied from interface: GenericFileProcessStrategy
Releases any file locks and possibly deletes or moves the file after successful processing

Specified by:
commit in interface GenericFileProcessStrategy<T>
Overrides:
commit in class GenericFileProcessStrategySupport<T>
Parameters:
operations - file operations
endpoint - the endpoint
exchange - the exchange
file - the file
Throws:
Exception - can be thrown in case of errors


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.