com.alipay.remoting.util
Class RunStateRecordedFutureTask<V>
java.lang.Object
java.util.concurrent.FutureTask<V>
com.alipay.remoting.util.RunStateRecordedFutureTask<V>
- All Implemented Interfaces:
- Runnable, Future<V>, RunnableFuture<V>
public class RunStateRecordedFutureTask<V>
- extends FutureTask<V>
A customized FutureTask which can record whether the run method has been called.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunStateRecordedFutureTask
public RunStateRecordedFutureTask(Callable<V> callable)
run
public void run()
- Specified by:
run in interface Runnable- Specified by:
run in interface RunnableFuture<V>- Overrides:
run in class FutureTask<V>
getAfterRun
public V getAfterRun()
throws InterruptedException,
ExecutionException,
FutureTaskNotRunYetException
- Throws:
InterruptedException
ExecutionException
FutureTaskNotRunYetException
Copyright © 2018. All rights reserved.