@Alias(value="polling") @DisplayName(value="Polling") public class PollingTypeSubscriberFactory extends Object implements SubscriberFactory
SubscriberFactory implementation for creating instances of polling subscribers| Constructor and Description |
|---|
PollingTypeSubscriberFactory() |
| Modifier and Type | Method and Description |
|---|---|
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)
Factory method for obtaining new instances of
MQSubscriber. |
org.mule.runtime.core.api.source.scheduler.Scheduler |
getSchedulingStrategy() |
void |
setSchedulingStrategy(org.mule.runtime.core.api.source.scheduler.Scheduler schedulingStrategy) |
public org.mule.runtime.core.api.source.scheduler.Scheduler getSchedulingStrategy()
public void setSchedulingStrategy(org.mule.runtime.core.api.source.scheduler.Scheduler schedulingStrategy)
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)
SubscriberFactoryMQSubscriber.
Every call to this method should return new instances of the same subscriber implementation.createSubscriber in interface SubscriberFactorysubscriberName - the id name of the subscriber for a given applicationdestination - the destination to subscribe for messagesackMode - the SubscriberAckMode to be used by the subscriberackTimeout - the acknowledgement timeout TTL to be used when fetching messagescircuitBreaker - the MQCircuitBreaker associated to this subscriberschedulerService - the service to use when creating subscribing threadscallback - callback to be used for dispatching to the application the messages being fetchedMQSubscriberCopyright © 2024 MuleSoft, Inc.. All rights reserved.