Constructor and Description |
---|
RunnableCallable(Callable<?> callable)
Constructor that takes a callable.
|
RunnableCallable(Runnable runnable)
Constructor that takes a runnable.
|
Modifier and Type | Method and Description |
---|---|
Void |
call()
Invokes the wrapped callable/runnable as a callable.
|
void |
run()
Invokes the wrapped callable/runnable as a runnable.
|
String |
toString()
Returns the class name of the wrapper callable/runnable.
|
public RunnableCallable(Runnable runnable)
runnable
- runnable.public RunnableCallable(Callable<?> callable)
callable
- callable.public void run()
run
in interface Runnable
RuntimeException
- thrown by the wrapped callable/runnable invocation.Copyright © 2008–2019 Apache Software Foundation. All rights reserved.