A C D F L P R S T U W 

A

andThen(Task) - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.

C

close() - Method in class com.github.sviperll.tasks.ConfigurableTask
 
close() - Method in class com.github.sviperll.tasks.DelegatingTask
runs #close method of current behaviour, @see Task#close
close() - Method in class com.github.sviperll.tasks.ParallelTask
 
close() - Method in class com.github.sviperll.tasks.RepeatingTask
Performes subtask cleanup as is, i. e. calls subtask's #stop method
close() - Method in class com.github.sviperll.tasks.RunnableTask
Do nothing
close() - Method in class com.github.sviperll.tasks.SequenceTask
 
close() - Method in interface com.github.sviperll.tasks.Task
Performs cleanup for given task, i.e. closes files and any other resources, removes temporary files or database records, etc
closeAfterEachRun() - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.
closeAfterEachRun(Task) - Static method in class com.github.sviperll.tasks.Tasks
Returns task that behaves the same as a Task passed but performes cleanup as the last action performed by run method.
closingTask() - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.
closingTaskFor(Task) - Static method in class com.github.sviperll.tasks.Tasks
Returns task that performs cleanup for the original task when run.
com.github.sviperll.tasks - package com.github.sviperll.tasks
 
ConfigurableTask - Class in com.github.sviperll.tasks
Wrapper that adds convinience methods to any task
ConfigurableTask(Task) - Constructor for class com.github.sviperll.tasks.ConfigurableTask
 
configure(Task) - Static method in class com.github.sviperll.tasks.Tasks
Wrapps task.
createClosingTask() - Method in interface com.github.sviperll.tasks.TaskFactory
 
createWorkTask() - Method in interface com.github.sviperll.tasks.TaskFactory
 

D

DelegatingTask - Class in com.github.sviperll.tasks
This class allows to dynamically change behaviour of the task #set method can be used to change current behaviour
DelegatingTask(Task) - Constructor for class com.github.sviperll.tasks.DelegatingTask
 
DelegatingTask() - Constructor for class com.github.sviperll.tasks.DelegatingTask
Creates new instance with "doing nothing" initial behaviour
doNothing() - Static method in class com.github.sviperll.tasks.Tasks
 

F

factory(TaskFactory) - Static method in class com.github.sviperll.tasks.Tasks
Creates task for given factory When Task#run method of created task is called TaskFactory#createWorkTask method of factory is called and resulting task is runned.

L

log(Logger, String) - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.
log(Task, Logger, String) - Static method in class com.github.sviperll.tasks.Tasks
Create task that logs invocation of it's methods

P

parallel(Task...) - Static method in class com.github.sviperll.tasks.Tasks
 
parallel(List<? extends Task>) - Static method in class com.github.sviperll.tasks.Tasks
 
ParallelTask - Class in com.github.sviperll.tasks
Task that runs it's subtasks in parallel Close methods are run sequentially
ParallelTask(Task[]) - Constructor for class com.github.sviperll.tasks.ParallelTask
 

R

repeat(long, TimeUnit) - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.
repeat() - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.
repeat(Task, long, TimeUnit) - Static method in class com.github.sviperll.tasks.Tasks
Repeat given task with pauses between task invocation
repeat(Task) - Static method in class com.github.sviperll.tasks.Tasks
Repeat given task
RepeatingTask - Class in com.github.sviperll.tasks
Task that when run repeatedly calles run method of it's subtask Given pause is performed between invokations of subtask Stop method breaks repeating cycle
RepeatingTask(Task, long) - Constructor for class com.github.sviperll.tasks.RepeatingTask
 
run() - Method in class com.github.sviperll.tasks.ConfigurableTask
 
run() - Method in class com.github.sviperll.tasks.DelegatingTask
runs #run method of current behaviour, @see Task#run
run() - Method in class com.github.sviperll.tasks.ParallelTask
 
run() - Method in class com.github.sviperll.tasks.RepeatingTask
Runs an repeats subtask with given pause between invokations
run() - Method in class com.github.sviperll.tasks.RunnableTask
Calls given runnable
run() - Method in class com.github.sviperll.tasks.SequenceTask
 
run() - Method in interface com.github.sviperll.tasks.Task
Performs actual work associated with given task
runnable(Runnable) - Static method in class com.github.sviperll.tasks.Tasks
Creates task from Runnable object When Task#run method of created task is called Runnable#run method is called in response Task#close and Task#stop methods of created task does nothong
RunnableTask - Class in com.github.sviperll.tasks
Task that runs given Runnable action
RunnableTask(Runnable) - Constructor for class com.github.sviperll.tasks.RunnableTask
 

S

sequence(Task...) - Static method in class com.github.sviperll.tasks.Tasks
 
sequence(List<? extends Task>) - Static method in class com.github.sviperll.tasks.Tasks
 
SequenceTask - Class in com.github.sviperll.tasks
Run it's subtasks in sequence
SequenceTask(Task[]) - Constructor for class com.github.sviperll.tasks.SequenceTask
 
set(Task) - Method in class com.github.sviperll.tasks.DelegatingTask
Changes current behaviour to new passed as a parameter
spawn(Task) - Static method in class com.github.sviperll.tasks.Tasks
Runs given task in a new thread
stop() - Method in class com.github.sviperll.tasks.ConfigurableTask
 
stop() - Method in class com.github.sviperll.tasks.DelegatingTask
runs #stop method of current behaviour, @see Task#stop
stop() - Method in class com.github.sviperll.tasks.ParallelTask
 
stop() - Method in class com.github.sviperll.tasks.RepeatingTask
Calls stop method of currently running subtask Stop repeating subtask
stop() - Method in class com.github.sviperll.tasks.RunnableTask
do nothing
stop() - Method in class com.github.sviperll.tasks.SequenceTask
 
stop() - Method in interface com.github.sviperll.tasks.Task
Interrupts current work performed by task and abort any unfinished work
swallowExceptions(Logger, long, TimeUnit) - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.
swallowExceptions(Task, Logger, long, TimeUnit) - Static method in class com.github.sviperll.tasks.Tasks
Creates new task that catches all exceptions of it's subtask.

T

Task - Interface in com.github.sviperll.tasks
Actions to perform
TaskFactory - Interface in com.github.sviperll.tasks
Factory to build two tasks Main task to perform actual work Closing task to perform cleanup for main task
Tasks - Class in com.github.sviperll.tasks
Facade-class for Task-object
Tasks() - Constructor for class com.github.sviperll.tasks.Tasks
 

U

unstoppable() - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.
unstoppable(Task) - Static method in class com.github.sviperll.tasks.Tasks
Returns task that can't be stopped externally.

W

withAdditinalClosingAction(Runnable) - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.
withAdditinalClosingAction(Task, Runnable) - Static method in class com.github.sviperll.tasks.Tasks
Returns task that behaves like the original task but performs additinal cleanup action Resulting task's Task#close method calls original task's Task#close method and given closingAction
withoutClose() - Method in class com.github.sviperll.tasks.ConfigurableTask
Returns new task.
withoutClose(Task) - Static method in class com.github.sviperll.tasks.Tasks
Returns task that doesn't perfom cleanup.
A C D F L P R S T U W 

Copyright © 2013. All Rights Reserved.