Class PrefetchTypeSubscriberFactory
java.lang.Object
com.mulesoft.extension.mq.api.source.PrefetchTypeSubscriberFactory
- All Implemented Interfaces:
SubscriberFactory
@Alias("prefetch")
@DisplayName("Prefetch")
public class PrefetchTypeSubscriberFactory
extends Object
implements SubscriberFactory
SubscriberFactory implementation for creating instances of prefetch subscribers-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSubscriber(String subscriberName, com.mulesoft.mq.restclient.internal.Destination destination, SubscriberAckMode ackMode, long ackTimeout, com.mulesoft.mq.restclient.circuit.MQCircuitBreaker circuitBreaker, org.mule.runtime.api.scheduler.SchedulerService schedulerService, org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream, AnypointMQMessageAttributes> callback, int primaryRegionStatusCheckIntervalMs, int fallbackMessagesCheckIntervalMs, boolean fallbackFeatureSystemPropertyEnabled, FlowProcessingTracker flowProcessingTracker) Factory method for obtaining new instances ofMQSubscriber.intvoidsetmaxLocalMessages(int maxLocalMessages) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mulesoft.extension.mq.api.source.SubscriberFactory
createSubscriber
-
Constructor Details
-
PrefetchTypeSubscriberFactory
public PrefetchTypeSubscriberFactory()
-
-
Method Details
-
getMaxLocalMessages
public int getMaxLocalMessages() -
setmaxLocalMessages
public void setmaxLocalMessages(int maxLocalMessages) -
createSubscriber
public MQSubscriber createSubscriber(String subscriberName, com.mulesoft.mq.restclient.internal.Destination destination, SubscriberAckMode ackMode, long ackTimeout, com.mulesoft.mq.restclient.circuit.MQCircuitBreaker circuitBreaker, org.mule.runtime.api.scheduler.SchedulerService schedulerService, org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream, AnypointMQMessageAttributes> callback, int primaryRegionStatusCheckIntervalMs, int fallbackMessagesCheckIntervalMs, boolean fallbackFeatureSystemPropertyEnabled, FlowProcessingTracker flowProcessingTracker) Description copied from interface:SubscriberFactoryFactory method for obtaining new instances ofMQSubscriber. Every call to this method should return new instances of the same subscriber implementation.- Specified by:
createSubscriberin interfaceSubscriberFactory- Parameters:
subscriberName- the id name of the subscriber for a given applicationdestination- the destination to subscribe for messagesackMode- theSubscriberAckModeto be used by the subscriberackTimeout- the acknowledgement timeout TTL to be used when fetching messagescircuitBreaker- theMQCircuitBreakerassociated to this subscriberschedulerService- the service to use when creating subscribing threadscallback- callback to be used for dispatching to the application the messages being fetchedprimaryRegionStatusCheckIntervalMs- interval for checking primary region statusfallbackMessagesCheckIntervalMs- interval for checking fallback messagesfallbackFeatureSystemPropertyEnabled- whether fallback feature is enabledflowProcessingTracker- tracker for coordinating between message fetch and flow processing- Returns:
- a new instance of an
MQSubscriber
-