/** * Returns a builder object that offers a step-by-step fluent API to build * a custom JMS {@link StreamSource} for the Pipeline API. See javadoc on * {@link JmsSourceBuilder} methods for more details. * <p> * This source uses the {@link Message#getJMSTimestamp() JMS' message * timestamp} as the native timestamp, if {@linkplain * StreamSourceStage#withNativeTimestamps(long) enabled}. * <p> * The source does not save any state to snapshot. The source starts * emitting items where it left from. * <p> * IO failures should be handled by the JMS provider. If any JMS operation * throws an exception, the job will fail. Most of the providers offer a * configuration parameter to enable auto-reconnection, refer to provider * documentation for details. * <p> * Default local parallelism for this processor is 4 (or less if less CPUs * are available). */ @Nonnull public static JmsSourceBuilder jmsQueueBuilder(DistributedSupplier<? extends ConnectionFactory> factorySupplier) { return new JmsSourceBuilder(factorySupplier, false); }
return new JmsSourceBuilder(factorySupplier, true);