public abstract class AbstractRunnable extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_EXIT_CODE
Deprecated.
|
static Runnable |
NOP |
Constructor and Description |
---|
AbstractRunnable() |
AbstractRunnable(boolean lenient)
create runnable.
|
AbstractRunnable(boolean lenient,
String threadName)
Create runnable lenient or not with a specific thread name during its execution.
|
AbstractRunnable(String threadName) |
@Deprecated public static final int ERROR_EXIT_CODE
public static final Runnable NOP
public AbstractRunnable(boolean lenient, @Nullable String threadName)
lenient
- - If lenient is true, it means that nobody is waiting for this runnable's result(finish) so To not
loose the exception, the runnable will LOG it as an error, and not retrow itthreadName
- - the thread name during the execution of this runnable.public AbstractRunnable(boolean lenient)
lenient
- - If lenient is true, it means that nobody is waiting for this runnable's result(finish) so To not
loose the exception, the runnable will LOG it as an error, and not retrow itpublic AbstractRunnable()
public AbstractRunnable(String threadName)
Copyright © 2018 SPF4J. All rights reserved.