Modifier and Type | Field and Description |
---|---|
protected ThreadFactory |
factory |
protected Runnable |
function |
protected boolean |
running |
protected Runnable |
stop_function |
protected Thread |
thread |
protected String |
thread_name |
Constructor and Description |
---|
Runner(ThreadFactory factory,
String thread_name,
Runnable function,
Runnable stop_function) |
Modifier and Type | Method and Description |
---|---|
Thread |
getThread() |
boolean |
isRunning() |
void |
run() |
void |
start() |
void |
stop() |
protected final ThreadFactory factory
protected final String thread_name
protected final Runnable function
protected final Runnable stop_function
protected volatile boolean running
protected Thread thread
public Runner(ThreadFactory factory, String thread_name, Runnable function, Runnable stop_function)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.