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 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: SubscriberFactory
      Factory method for obtaining new instances of MQSubscriber. Every call to this method should return new instances of the same subscriber implementation.
      Specified by:
      createSubscriber in interface SubscriberFactory
      Parameters:
      subscriberName - the id name of the subscriber for a given application
      destination - the destination to subscribe for messages
      ackMode - the SubscriberAckMode to be used by the subscriber
      ackTimeout - the acknowledgement timeout TTL to be used when fetching messages
      circuitBreaker - the MQCircuitBreaker associated to this subscriber
      schedulerService - the service to use when creating subscribing threads
      callback - callback to be used for dispatching to the application the messages being fetched
      primaryRegionStatusCheckIntervalMs - interval for checking primary region status
      fallbackMessagesCheckIntervalMs - interval for checking fallback messages
      fallbackFeatureSystemPropertyEnabled - whether fallback feature is enabled
      flowProcessingTracker - tracker for coordinating between message fetch and flow processing
      Returns:
      a new instance of an MQSubscriber