Thread factories to be used by Scheduler,
creating Thread with a prefix (which can be retrieved with the get() method).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicLong | |
| private final boolean | |
| private final String | |
| private final boolean | |
| private final BiConsumer |
| Access | Constructor and Description |
|---|---|
| pack-priv | ReactorThreadFactory(String name, AtomicLong counterReference, boolean daemon, boolean rejectBlocking, BiConsumer<Thread, Throwable> uncaughtExceptionHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public final String | Returns: the thread name prefixImplements java. Threads created by this ThreadFactory.
|
| public final Thread | newThread(Runnable
a runnable to be executed by new thread instance runnable)Implements java. Thread to run the given runnable.
|
| public void | uncaughtException(Thread
the thread t, Throwable the exception e)Implements java. |
| counterReference | back to summary |
|---|---|
| private final AtomicLong counterReference | |
| daemon | back to summary |
|---|---|
| private final boolean daemon | |
| name | back to summary |
|---|---|
| private final String name | |
| rejectBlocking | back to summary |
|---|---|
| private final boolean rejectBlocking | |
| uncaughtExceptionHandler | back to summary |
|---|---|
| private final BiConsumer<Thread, Throwable> uncaughtExceptionHandler
| |
| ReactorThreadFactory | back to summary |
|---|---|
| pack-priv ReactorThreadFactory(String name, AtomicLong counterReference, boolean daemon, boolean rejectBlocking, BiConsumer<Thread, Throwable> uncaughtExceptionHandler) | |
| get | back to summary |
|---|---|
| public final String get() Implements java. Get the prefix used for new | |
| newThread | back to summary |
|---|---|
| public final Thread newThread(Runnable runnable) Implements java. Doc from java. Constructs a new unstarted | |
| uncaughtException | back to summary |
|---|---|
| public void uncaughtException(Thread t, Throwable e) Implements java. Doc from java. Method invoked when the given thread terminates due to the given uncaught exception. Any exception thrown by this method will be ignored by the Java Virtual Machine. | |
| Access | Constructor and Description |
|---|---|
| public |
| NonBlockingThread | back to summary |
|---|---|
| public NonBlockingThread(Runnable target, String name) | |