Class FutureTask<V>
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.futures.FutureTask<V>
-
- All Implemented Interfaces:
java.lang.Runnable,java.util.concurrent.Future<V>,RunnableFuture<V>
- Direct Known Subclasses:
ListenableFutureTask
public class FutureTask<V> extends java.lang.Object implements RunnableFuture<V>
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description FutureTask(java.util.concurrent.Callable<V> callable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)protected voiddone()Vget()Vget(long timeout, java.util.concurrent.TimeUnit unit)booleanisCancelled()booleanisDone()voidrun()
-
-
-
Constructor Detail
-
FutureTask
public FutureTask(java.util.concurrent.Callable<V> callable)
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancelin interfacejava.util.concurrent.Future<V>
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfacejava.util.concurrent.Future<V>
-
isDone
public boolean isDone()
- Specified by:
isDonein interfacejava.util.concurrent.Future<V>
-
get
public V get() throws java.lang.InterruptedException, ExecutionException
- Specified by:
getin interfacejava.util.concurrent.Future<V>- Throws:
java.lang.InterruptedExceptionExecutionException
-
get
public V get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, ExecutionException
- Specified by:
getin interfacejava.util.concurrent.Future<V>- Throws:
java.lang.InterruptedExceptionExecutionException
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Specified by:
runin interfaceRunnableFuture<V>
-
done
protected void done()
-
-