processStrategy can be used to use a custom
GenericFileProcessStrategy that allows you to implement your own begin, commit and rollback logic. For instance let's assume a system
writes a file in a folder you should consume. But you should not start consuming the file
before another ready file have been written as well.
So by implementing our own
GenericFileProcessStrategy we can implement
begin()method we can test whether the special ready file exists. The begin method returns a
booleanto indicate if we can consume the file or not.
abort()special logic can be executed in case the begin operation returned false, for example to cleanup resources, etc.
commit()method we can move the file and also delete the ready file.