You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm using RotatingServerAdvice when pooling files from different remote, I want to have ability to remove unprocessed files from queue, to avoid trying to get file from remote when Session is rotated.
Current Behavior
When you have DelegatingSessionFactory with RotatingServerAdvice and there are unprocessed files in queue (see toBeReceived in AbstractRemoteFileStreamingMessageSource), when you call doReceive MessageSource will try to retrieve file from queue and it will be success or not depends on Session return from DelegatingSessionFactory. If rotation happened and 'new' session is not able to retrieve file from remote, exception is thrown (access denied) that clears that internal queue.
Context
I want to add public method on AbstractRemoteFileStreamingMessageSource thats allow developer to decide if he wants to clean this queue (before doReceive). It means that you can write own RotatingPolicy that will clear toBeReceived queue if necessary.
The text was updated successfully, but these errors were encountered:
…clearFetchedCache
Fixes: spring-projects#8898
In some cases not all retched remote files are processed, and after changing the `SessionFactory` (e.g. `RotatingServerAdvice`)
thy might not be processed on the next polling cycle
Expected Behavior
When I'm using RotatingServerAdvice when pooling files from different remote, I want to have ability to remove unprocessed files from queue, to avoid trying to get file from remote when Session is rotated.
Current Behavior
When you have
DelegatingSessionFactory
withRotatingServerAdvice
and there are unprocessed files in queue (seetoBeReceived
inAbstractRemoteFileStreamingMessageSource
), when you calldoReceive
MessageSource will try to retrieve file from queue and it will be success or not depends onSession
return fromDelegatingSessionFactory
. If rotation happened and 'new' session is not able to retrieve file from remote, exception is thrown (access denied) that clears that internal queue.Context
I want to add public method on
AbstractRemoteFileStreamingMessageSource
thats allow developer to decide if he wants to clean this queue (beforedoReceive
). It means that you can write ownRotatingPolicy
that will cleartoBeReceived
queue if necessary.The text was updated successfully, but these errors were encountered: