Class ListenableFutureTask<V>
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.futures.FutureTask<V>
-
- net.lax1dude.eaglercraft.v1_8.futures.ListenableFutureTask<V>
-
- All Implemented Interfaces:
java.lang.Runnable
,java.util.concurrent.Future<V>
,Future<V>
,ListenableFuture<V>
,RunnableFuture<V>
public class ListenableFutureTask<V> extends FutureTask<V> implements ListenableFuture<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)
-
-
Field Summary
-
Fields inherited from interface net.lax1dude.eaglercraft.v1_8.futures.ListenableFuture
futureExceptionLogger
-
-
Constructor Summary
Constructors Constructor Description ListenableFutureTask(java.util.concurrent.Callable<V> callable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(java.lang.Runnable listener, java.util.concurrent.Executor executor)
static <V> ListenableFutureTask<V>
create(java.util.concurrent.Callable<V> callableToSchedule)
protected void
done()
-
Methods inherited from class net.lax1dude.eaglercraft.v1_8.futures.FutureTask
cancel, get, get, isCancelled, isDone, run
-
-
-
-
Constructor Detail
-
ListenableFutureTask
public ListenableFutureTask(java.util.concurrent.Callable<V> callable)
-
-
Method Detail
-
addListener
public void addListener(java.lang.Runnable listener, java.util.concurrent.Executor executor)
- Specified by:
addListener
in interfaceListenableFuture<V>
-
done
protected void done()
- Overrides:
done
in classFutureTask<V>
-
create
public static <V> ListenableFutureTask<V> create(java.util.concurrent.Callable<V> callableToSchedule)
-
-