public interface PrefetchHandler<T>
This bean should be configured as a proxy service transport property for polling transport service level
configurations using the property name, ultra.polling.prefetch_handler_bean
if the handler is provided
as a spring bean or ultra.polling.prefetch_handler_class
if it can be initialized with reflection.
PollingConstants.PREFETCH_HANDLER_BEAN
,
PollingConstants.PREFETCH_HANDLER_CLASS
Modifier and Type | Method and Description |
---|---|
boolean |
shouldFetch(T context,
String subject)
Executes based on the provided context and provides the decision, whether to fetch the message or discard it
|
boolean shouldFetch(T context, String subject)
context
- the context of the execution usually comprises of the transport propertiessubject
- the main subject of the message being fetched, for example the filename or the email address etc..Copyright © 2010–2016 AdroitLogic. All rights reserved.