Class PollingTypeSubscriberFactory
java.lang.Object
com.mulesoft.extension.mq.api.source.PollingTypeSubscriberFactory
- All Implemented Interfaces:
SubscriberFactory
@Alias("polling")
@DisplayName("Polling")
public class PollingTypeSubscriberFactory
extends Object
implements SubscriberFactory
SubscriberFactory implementation for creating instances of polling 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.org.mule.runtime.core.api.source.scheduler.SchedulervoidsetSchedulingStrategy(org.mule.runtime.core.api.source.scheduler.Scheduler schedulingStrategy) 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
-
PollingTypeSubscriberFactory
public PollingTypeSubscriberFactory()
-
-
Method Details
-
getSchedulingStrategy
public org.mule.runtime.core.api.source.scheduler.Scheduler getSchedulingStrategy() -
setSchedulingStrategy
public void setSchedulingStrategy(org.mule.runtime.core.api.source.scheduler.Scheduler schedulingStrategy) -
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
-