Class Runner
java.lang.Object
org.jgroups.util.Runner
- All Implemented Interfaces:
Closeable, AutoCloseable, Runnable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final ThreadFactoryprotected final Runnableprotected longprotected Logprotected Runner.Stateprotected final Runnableprotected Threadprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleandaemon()daemon(boolean d) longbooleanjoinTimeout(long t) log()voidrun()booleanrunning()protected voidsetJoinTimeout(long t) start()state()protected booleanstate(Runner.State new_state) stop()threadName(String n) toString()
-
Field Details
-
factory
-
thread_name
-
function
-
stop_function
-
state
-
thread
-
daemon
protected boolean daemon -
join_timeout
protected long join_timeout -
log
-
-
Constructor Details
-
Runner
-
Runner
-
-
Method Details
-
getThread
-
isRunning
public boolean isRunning() -
running
public boolean running() -
state
-
daemon
public boolean daemon() -
daemon
-
threadName
-
threadName
-
getJoinTimeout
public long getJoinTimeout() -
setJoinTimeout
-
joinTimeout
-
log
-
log
-
start
-
stop
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
run
-
toString
-
state
-
runStopFunction
protected void runStopFunction()
-