|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.file.GenericFileOnCompletion<T>
public class GenericFileOnCompletion<T>
On completion strategy that performs the nessasary work after the Exchange has been processed.
| Constructor Summary | |
|---|---|
GenericFileOnCompletion(GenericFileEndpoint<T> endpoint,
GenericFileOperations<T> operations)
|
|
| Method Summary | |
|---|---|
ExceptionHandler |
getExceptionHandler()
|
protected void |
handleException(Throwable t)
|
void |
onComplete(Exchange exchange)
Called when the processing of the message exchange is complete |
protected void |
onCompletion(Exchange exchange)
|
void |
onFailure(Exchange exchange)
Called when the processing of the message exchange has failed for some reason. |
protected void |
processStrategyCommit(GenericFileProcessStrategy<T> processStrategy,
Exchange exchange,
GenericFile<T> file)
Strategy when the file was processed and a commit should be executed. |
protected void |
processStrategyRollback(GenericFileProcessStrategy<T> processStrategy,
Exchange exchange,
GenericFile<T> file)
Strategy when the file was not processed and a rollback should be executed. |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenericFileOnCompletion(GenericFileEndpoint<T> endpoint,
GenericFileOperations<T> operations)
| Method Detail |
|---|
public void onComplete(Exchange exchange)
Synchronization
onComplete in interface Synchronizationexchange - the exchange being processedpublic void onFailure(Exchange exchange)
SynchronizationExchange.getException() and
there could be a fault message via Exchange.getFault()
onFailure in interface Synchronizationexchange - the exchange being processedpublic ExceptionHandler getExceptionHandler()
public void setExceptionHandler(ExceptionHandler exceptionHandler)
protected void onCompletion(Exchange exchange)
protected void processStrategyCommit(GenericFileProcessStrategy<T> processStrategy,
Exchange exchange,
GenericFile<T> file)
processStrategy - the strategy to perform the commitexchange - the exchangefile - the file processed
protected void processStrategyRollback(GenericFileProcessStrategy<T> processStrategy,
Exchange exchange,
GenericFile<T> file)
processStrategy - the strategy to perform the commitexchange - the exchangefile - the file processedprotected void handleException(Throwable t)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||