org.omnaest.utils.threads
Class RunnableToCallableAdapter
java.lang.Object
org.omnaest.utils.threads.RunnableToCallableAdapter
- All Implemented Interfaces:
- Callable<Void>
public class RunnableToCallableAdapter
- extends Object
- implements Callable<Void>
Adapter to use a Runnable as Callable
- Author:
- Omnaest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
runnable
protected final Runnable runnable
RunnableToCallableAdapter
public RunnableToCallableAdapter(Runnable runnable)
- Parameters:
runnable - - See Also:
RunnableToCallableAdapter
call
public Void call()
throws Exception
- Specified by:
call in interface Callable<Void>
- Throws:
Exception
Copyright © 2013. All Rights Reserved.