org.omnaest.utils.threads
Class RunnableToCallableAdapter

java.lang.Object
  extended by 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

Field Summary
protected  Runnable runnable
           
 
Constructor Summary
RunnableToCallableAdapter(Runnable runnable)
           
 
Method Summary
 Void call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runnable

protected final Runnable runnable
Constructor Detail

RunnableToCallableAdapter

public RunnableToCallableAdapter(Runnable runnable)
Parameters:
runnable -
See Also:
RunnableToCallableAdapter
Method Detail

call

public Void call()
          throws Exception
Specified by:
call in interface Callable<Void>
Throws:
Exception


Copyright © 2013. All Rights Reserved.