- abort() - Static method in class co.aikar.taskchain.TaskChain
-
Call to abort execution of the chain.
- abortChain() - Method in class co.aikar.taskchain.TaskChain
-
Aborts the chain once this step is reached.
- AbortChainException - Exception in co.aikar.taskchain
-
- AbortChainException() - Constructor for exception co.aikar.taskchain.AbortChainException
-
- abortIf(T) - Method in class co.aikar.taskchain.TaskChain
-
Checks if the previous task return is the supplied value.
- abortIf(T, TaskChainAbortAction<?, ?, ?>) - Method in class co.aikar.taskchain.TaskChain
-
- abortIf(T, TaskChainAbortAction<A1, ?, ?>, A1) - Method in class co.aikar.taskchain.TaskChain
-
- abortIf(T, TaskChainAbortAction<A1, A2, ?>, A1, A2) - Method in class co.aikar.taskchain.TaskChain
-
- abortIf(T, TaskChainAbortAction<A1, A2, A3>, A1, A2, A3) - Method in class co.aikar.taskchain.TaskChain
-
- abortIf(Predicate<T>) - Method in class co.aikar.taskchain.TaskChain
-
Checks if the previous task return matches the supplied predicate, and aborts if it was.
- abortIf(Predicate<T>, TaskChainAbortAction<?, ?, ?>) - Method in class co.aikar.taskchain.TaskChain
-
- abortIf(Predicate<T>, TaskChainAbortAction<A1, ?, ?>, A1) - Method in class co.aikar.taskchain.TaskChain
-
- abortIf(Predicate<T>, TaskChainAbortAction<A1, A2, ?>, A1, A2) - Method in class co.aikar.taskchain.TaskChain
-
- abortIf(Predicate<T>, TaskChainAbortAction<A1, A2, A3>, A1, A2, A3) - Method in class co.aikar.taskchain.TaskChain
-
Checks if the previous task return matches the supplied predicate, and aborts if it was.
- abortIfNot(T) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNot(T, TaskChainAbortAction<?, ?, ?>) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNot(T, TaskChainAbortAction<A1, ?, ?>, A1) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNot(T, TaskChainAbortAction<A1, A2, ?>, A1, A2) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNot(T, TaskChainAbortAction<A1, A2, A3>, A1, A2, A3) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNot(Predicate<T>) - Method in class co.aikar.taskchain.TaskChain
-
Checks if the previous task return does NOT match the supplied predicate, and aborts if it does not match.
- abortIfNot(Predicate<T>, TaskChainAbortAction<?, ?, ?>) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNot(Predicate<T>, TaskChainAbortAction<A1, ?, ?>, A1) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNot(Predicate<T>, TaskChainAbortAction<A1, A2, ?>, A1, A2) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNot(Predicate<T>, TaskChainAbortAction<A1, A2, A3>, A1, A2, A3) - Method in class co.aikar.taskchain.TaskChain
-
Checks if the previous task return does NOT match the supplied predicate, and aborts if it does not match.
- abortIfNull() - Method in class co.aikar.taskchain.TaskChain
-
Checks if the previous task return was null.
- abortIfNull(TaskChainAbortAction<?, ?, ?>) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNull(TaskChainAbortAction<A1, ?, ?>, A1) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNull(TaskChainAbortAction<A1, A2, ?>, A1, A2) - Method in class co.aikar.taskchain.TaskChain
-
- abortIfNull(TaskChainAbortAction<A1, A2, A3>, A1, A2, A3) - Method in class co.aikar.taskchain.TaskChain
-
Checks if the previous task return was null, and aborts if it was
Then executes supplied action handler
If not null, the previous task return will forward to the next task.
- add0(TaskChain<T>.TaskHolder<?, ?>) - Method in class co.aikar.taskchain.TaskChain
-
- async(TaskChainTasks.Task<R, T>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#sync(Task)
but ran off main thread
- async(TaskChainTasks.GenericTask) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#sync(GenericTask)
but ran off main thread
- asyncCallback(TaskChainTasks.AsyncExecutingTask<R, T>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncCallback(AsyncExecutingTask)
but ran off main thread
- asyncCallback(TaskChainTasks.AsyncExecutingGenericTask) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncCallback(AsyncExecutingTask)
but ran off main thread
- asyncFirst(TaskChainTasks.FirstTask<R>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFirst(FirstTask)
but ran off main thread
- asyncFirstCallback(TaskChainTasks.AsyncExecutingFirstTask<R>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFirstCallback(AsyncExecutingFirstTask)
but ran off main thread
- asyncFirstFuture(TaskChainTasks.FutureFirstTask<R>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFirstFuture(FutureFirstTask)
but ran off main thread
- asyncFirstFutures(TaskChainTasks.FirstTask<List<CompletableFuture<R>>>) - Method in class co.aikar.taskchain.TaskChain
-
Executes a Task off the Main thread that provides a list of Futures, and holds processing
of the chain until all of the futures completes.
- asyncFuture(TaskChainTasks.FutureTask<R, T>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFuture(FutureTask)
but the future provider is ran off main thread
- asyncFuture(TaskChainTasks.FutureGenericTask) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFuture(FutureTask)
but the future provider is ran off main thread
- asyncFutures(TaskChainTasks.Task<List<CompletableFuture<R>>, T>) - Method in class co.aikar.taskchain.TaskChain
-
Executes a Task off the Main thread that provides a list of Futures, and holds processing
of the chain until all of the futures completes.
- asyncLast(TaskChainTasks.LastTask<T>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncLast(LastTask)
but ran off main thread
- AsyncQueue - Interface in co.aikar.taskchain
-
- co.aikar.taskchain - package co.aikar.taskchain
-
- configure(Consumer<TaskChain<T>>) - Method in class co.aikar.taskchain.TaskChain
-
Allows you to call a callback to insert tasks into the chain without having to break the fluent interface
Example: Plugin.newChain().sync(some::task).configure(chain -> {
chain.async(some::foo);
chain.sync(other::bar);
}).async(other::task).execute();
- createCachedThreadPool() - Static method in class co.aikar.taskchain.TaskChainAsyncQueue
-
- current(TaskChainTasks.Task<R, T>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#sync(Task)
but ran on current thread the Chain was created on
- current(TaskChainTasks.GenericTask) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#sync(GenericTask)
but ran on current thread the Chain was created on
- currentCallback(TaskChainTasks.AsyncExecutingTask<R, T>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncCallback(AsyncExecutingTask)
but ran on current thread the Chain was created on
- currentCallback(TaskChainTasks.AsyncExecutingGenericTask) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncCallback(AsyncExecutingTask)
but ran on current thread the Chain was created on
- currentFirst(TaskChainTasks.FirstTask<R>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFirst(FirstTask)
but ran on current thread the Chain was created on
- currentFirstCallback(TaskChainTasks.AsyncExecutingFirstTask<R>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFirstCallback(AsyncExecutingFirstTask)
but ran on current thread the Chain was created on
- currentFirstFuture(TaskChainTasks.FutureFirstTask<R>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFirstFuture(FutureFirstTask)
but ran on current thread the Chain was created on
- currentFirstFutures(TaskChainTasks.FirstTask<List<CompletableFuture<R>>>) - Method in class co.aikar.taskchain.TaskChain
-
Executes a Task on the current thread that provides a list of Futures, and holds processing
of the chain until all of the futures completes.
- currentFuture(TaskChainTasks.FutureTask<R, T>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFuture(FutureTask)
but the future provider is ran on current thread the Chain was created on
- currentFuture(TaskChainTasks.FutureGenericTask) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFuture(FutureTask)
but the future provider is ran on current thread the Chain was created on
- currentFutures(TaskChainTasks.Task<List<CompletableFuture<R>>, T>) - Method in class co.aikar.taskchain.TaskChain
-
Executes a Task on the current thread that provides a list of Futures, and holds processing
of the chain until all of the futures completes.
- currentLast(TaskChainTasks.LastTask<T>) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncLast(LastTask)
but ran on current thread the Chain was created on
- scheduleTask(int, Runnable) - Method in interface co.aikar.taskchain.GameInterface
-
Schedule a task within the games scheduler using its own units
IMPLEMENTATION SPECIFIC
- scheduleTask(int, TimeUnit, Runnable) - Method in interface co.aikar.taskchain.GameInterface
-
Adds a delay to the chain execution based on real time
Method will be ran async from main thread.
- setDefaultErrorHandler(BiConsumer<Exception, TaskChainTasks.Task<?, ?>>) - Method in class co.aikar.taskchain.TaskChainFactory
-
Sets the default error handler used for all chains created by this factory,
if they do not supply their own error handler.
- setDoneCallback(Consumer<Boolean>) - Method in class co.aikar.taskchain.TaskChain
-
Changes the done callback handler for this chain
- setErrorHandler(BiConsumer<Exception, TaskChainTasks.Task<?, ?>>) - Method in class co.aikar.taskchain.TaskChain
-
Changes the error handler for this chain
- setTaskData(String, Object) - Method in class co.aikar.taskchain.TaskChain
-
Saves a value for this chain so that a task furthur up the chain can access it.
- shutdown(int, TimeUnit) - Method in interface co.aikar.taskchain.AsyncQueue
-
Call during game shutdown state
- shutdown(int, TimeUnit) - Method in class co.aikar.taskchain.TaskChainAsyncQueue
-
Call during game shutdown state
- shutdown(int, TimeUnit) - Method in class co.aikar.taskchain.TaskChainFactory
-
Shuts down the TaskChain system, forcing all tasks to run on current threads and finish.
- storeAsData(String) - Method in class co.aikar.taskchain.TaskChain
-
Takes the previous tasks return value, stores it to the specified key
as Task Data, and then forwards that value to the next task.
- sync(TaskChainTasks.Task<R, T>) - Method in class co.aikar.taskchain.TaskChain
-
Execute task on main thread, with the last returned input, returning an output
- sync(TaskChainTasks.GenericTask) - Method in class co.aikar.taskchain.TaskChain
-
Execute task on main thread, with no input or output
- syncCallback(TaskChainTasks.AsyncExecutingTask<R, T>) - Method in class co.aikar.taskchain.TaskChain
-
Execute a task on the main thread, with the last output, and a callback to return the response to.
- syncCallback(TaskChainTasks.AsyncExecutingGenericTask) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncCallback(AsyncExecutingTask)
, ran on main thread but no input or output
- syncFirst(TaskChainTasks.FirstTask<R>) - Method in class co.aikar.taskchain.TaskChain
-
Execute task on main thread, with no input, returning an output
- syncFirstCallback(TaskChainTasks.AsyncExecutingFirstTask<R>) - Method in class co.aikar.taskchain.TaskChain
-
Execute a task on the main thread, with no previous input, and a callback to return the response to.
- syncFirstFuture(TaskChainTasks.FutureFirstTask<R>) - Method in class co.aikar.taskchain.TaskChain
-
Execute a task on the main thread, with no previous input, that will return a Future to signal completion
It's important you don't perform blocking operations in this method.
- syncFirstFutures(TaskChainTasks.FirstTask<List<CompletableFuture<R>>>) - Method in class co.aikar.taskchain.TaskChain
-
Executes a Task on the Main thread that provides a list of Futures, and holds processing
of the chain until all of the futures completes.
- syncFuture(TaskChainTasks.FutureTask<R, T>) - Method in class co.aikar.taskchain.TaskChain
-
Execute a task on the main thread, with the last output as the input to the future provider,
that will return a Future to signal completion.
- syncFuture(TaskChainTasks.FutureGenericTask) - Method in class co.aikar.taskchain.TaskChain
-
TaskChain#syncFuture(FutureTask)
, ran on main thread but no input or output
- syncFutures(TaskChainTasks.Task<List<CompletableFuture<R>>, T>) - Method in class co.aikar.taskchain.TaskChain
-
Executes a Task on the Main thread that provides a list of Futures, and holds processing
of the chain until all of the futures completes.
- syncLast(TaskChainTasks.LastTask<T>) - Method in class co.aikar.taskchain.TaskChain
-
Execute task on main thread, with the last output, and no furthur output