public class Runner
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected ThreadFactory |
factory |
protected java.lang.Runnable |
function |
protected boolean |
running |
protected java.lang.Runnable |
stop_function |
protected java.lang.Thread |
thread |
protected java.lang.String |
thread_name |
Constructor and Description |
---|
Runner(ThreadFactory factory,
java.lang.String thread_name,
java.lang.Runnable function,
java.lang.Runnable stop_function) |
Modifier and Type | Method and Description |
---|---|
java.lang.Thread |
getThread() |
boolean |
isRunning() |
void |
run() |
void |
start() |
void |
stop() |
protected final ThreadFactory factory
protected final java.lang.String thread_name
protected final java.lang.Runnable function
protected final java.lang.Runnable stop_function
protected volatile boolean running
protected java.lang.Thread thread
public Runner(ThreadFactory factory, java.lang.String thread_name, java.lang.Runnable function, java.lang.Runnable stop_function)
Copyright © 1998-2020 Red Hat. All Rights Reserved.