Package org.wildfly.clustering.function
Interface Runnable
- All Superinterfaces:
Runnable
An enhanced runnable.
- Author:
- Paul Ferraro
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault RunnableReturns a task that runs the specified task after running this task.static Runnableempty()Returns an empty task.static RunnableReturns a composite task that runs the specified task.static <T> RunnableReturns a task that consumes a value from the specified supplier.
-
Field Details
-
EMPTY
-
-
Method Details
-
andThen
Returns a task that runs the specified task after running this task.- Parameters:
task- a task to run after this task- Returns:
- a task that runs the specified task after running this task.
-
empty
Returns an empty task.- Returns:
- an empty task.
-
of
Returns a task that consumes a value from the specified supplier.- Type Parameters:
T- the consumed value- Parameters:
consumer- a consumer of the supplied valuesupplier- a supplier of the consumed value- Returns:
- a task that consumes a value from the specified supplier.
-
of
Returns a composite task that runs the specified task.- Parameters:
tasks- zero or more tasks- Returns:
- a composite task that runs the specified task.
-