You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Stores the naming pattern for newly created threads. */
264
+
/**
265
+
* The naming pattern for newly created threads.
266
+
* <p>
267
+
* The naming pattern is a {@link String#format(String, Object...) format string} that expects a single argument. This argument is the number of the thread
268
+
* to be created. For instance, if the naming pattern is {@code "MyThread-%d"}, the first thread created by this factory will be named {@code "MyThread-1"},
* Gets the daemon flag. This flag determines whether newly created
282
297
* threads should be daemon threads. If <strong>true</strong>, this factory object
283
298
* calls {@code setDaemon(true)} on the newly created threads. Result can be
284
-
* <strong>null</strong> if no daemon flag was provided at creation time.
299
+
* {@code null} if no daemon flag was provided at creation time.
285
300
*
286
-
* @return the daemon flag
301
+
* @return the daemon flag.
287
302
*/
288
303
publicfinalBooleangetDaemonFlag() {
289
304
returndaemon;
290
305
}
291
306
292
307
/**
293
-
* Gets the naming pattern for naming newly created threads. Result can
294
-
* be <strong>null</strong> if no naming pattern was provided.
308
+
* Gets the naming pattern for naming newly created threads. Result can be {@code null} if no naming pattern was provided.
309
+
* <p>
310
+
* The naming pattern is a {@link String#format(String, Object...) format string} that expects a single argument. This argument is the number of the thread
311
+
* to be created. For instance, if the naming pattern is {@code "MyThread-%d"}, the first thread created by this factory will be named {@code "MyThread-1"},
312
+
* the second one {@code "MyThread-2"} and so on.
313
+
* </p>
295
314
*
296
-
* @return the naming pattern
315
+
* @return the naming pattern.
297
316
*/
298
317
publicfinalStringgetNamingPattern() {
299
318
returnnamingPattern;
300
319
}
301
320
302
321
/**
303
322
* Gets the priority of the threads created by this factory. Result can
304
-
* be <strong>null</strong> if no priority was specified.
323
+
* be {@code null} if no priority was specified.
305
324
*
306
-
* @return the priority for newly created threads
325
+
* @return the priority for newly created threads.
307
326
*/
308
327
publicfinalIntegergetPriority() {
309
328
returnpriority;
@@ -314,29 +333,29 @@ public final Integer getPriority() {
314
333
* class maintains an internal counter that is incremented each time the
315
334
* {@link #newThread(Runnable)} method is invoked.
316
335
*
317
-
* @return the number of threads created by this factory
336
+
* @return the number of threads created by this factory.
318
337
*/
319
338
publiclonggetThreadCount() {
320
339
returnthreadCounter.get();
321
340
}
322
341
323
342
/**
324
343
* Gets the {@link UncaughtExceptionHandler} for the threads created by
325
-
* this factory. Result can be <strong>null</strong> if no handler was provided.
344
+
* this factory. Result can be {@code null} if no handler was provided.
0 commit comments