@@ -123,10 +123,10 @@ public class MessageConsumer {
123123 * <p >
124124 * Or to set the global concurrency to 10, for example:
125125 * <code >
126- * private SequentialExecutorServiceFactory conseqServiceFactory = ConseqServiceFactory.newInstance (10);
126+ * private SequentialExecutorServiceFactory conseqServiceFactory = ConseqServiceFactory.instance (10);
127127 * </code>
128128 */
129- private final SequentialExecutorServiceFactory conseqServiceFactory = ConseqServiceFactory . newInstance ();
129+ private final SequentialExecutorServiceFactory conseqServiceFactory = ConseqServiceFactory . instance ();
130130
131131 @Autowired private ShoppingEventProcessor shoppingEventProcessor;
132132
@@ -167,12 +167,12 @@ public class MessageConsumer {
167167 run-time's [ availableProcessors] ( https://docs.oracle.com/javase/8/docs/api/java/lang/Runtime.html#availableProcessors-- ) ,
168168 which ever is larger:
169169 ``` jshelllanguage
170- ConseqServiceFactory.newInstance ();
170+ ConseqServiceFactory.instance ();
171171 ```
172172
173173 The concurrency can be customized:
174174 ``` jshelllanguage
175- ConseqServiceFactory.newInstance (10)
175+ ConseqServiceFactory.instance (10)
176176 ```
177177
178178### Style 2: submit each task directly for execution, together with its sequence key
@@ -221,10 +221,10 @@ public class MessageConsumer {
221221 * <p >
222222 * Or to provide a custom concurrency of 10, for example:
223223 * <code >
224- * private SequentialExecutor conseqExecutor = ConseqExecutor.newInstance (10));
224+ * private SequentialExecutor conseqExecutor = ConseqExecutor.instance (10));
225225 * </code>
226226 */
227- private final SequentialExecutor conseqExecutor = ConseqExectuor . newInstance ();
227+ private final SequentialExecutor conseqExecutor = ConseqExectuor . instance ();
228228
229229 @Autowired private ShoppingEventProcessor shoppingEventProcessor;
230230
@@ -260,7 +260,7 @@ public class MessageConsumer {
260260 run-time's [ availableProcessors] ( https://docs.oracle.com/javase/8/docs/api/java/lang/Runtime.html#availableProcessors-- ) ,
261261 which ever is larger:
262262 ``` jshelllanguage
263- ConseqExecutor.newInstance ()
263+ ConseqExecutor.instance ()
264264 ```
265265 or
266266 ``` jshelllanguage
@@ -269,7 +269,7 @@ public class MessageConsumer {
269269
270270 The concurrency can be customized:
271271 ``` jshelllanguage
272- ConseqExecutor.newInstance (10)
272+ ConseqExecutor.instance (10)
273273 ```
274274 or
275275 ``` jshelllanguage
0 commit comments