jlibs.core.lang
Class ThrowableTask<R,E extends Exception>

java.lang.Object
  extended by jlibs.core.lang.ThrowableTask<R,E>
Direct Known Subclasses:
IOPump, Task

public abstract class ThrowableTask<R,E extends Exception>
extends Object

Author:
Santhosh Kumar T

Constructor Summary
ThrowableTask(Class<E> exceptionClass)
           
 
Method Summary
 Runnable asRunnable()
           
 Exception getException()
           
 R getResult()
           
abstract  R run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowableTask

public ThrowableTask(Class<E> exceptionClass)
Method Detail

run

public abstract R run()
               throws E extends Exception
Throws:
E extends Exception

getResult

public R getResult()
            throws E extends Exception
Throws:
E extends Exception

getException

public Exception getException()

asRunnable

public Runnable asRunnable()


Copyright © 2018. All rights reserved.