Top Description Methods
io.smallrye.common.function

public Interface ExceptionRunnable<E extends Exception>

Known Direct Implementers
io.smallrye.common.function.Functions.ExceptionBiConsumerRunnable, io.smallrye.common.function.Functions.ExceptionConsumerRunnable
Type Parameters
<E>
the exception type
Imports
io.smallrye.common.constraint.Assert

An operation that can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public default ExceptionRunnable<E>

Returns:

a runnable which runs this task and then the given task
andThen
(ExceptionRunnable<? extends E>
the other task
after
)

Returns a runnable which runs this task and then the given task.

public default ExceptionRunnable<E>

Returns:

a runnable which runs the given task and then this task
compose
(ExceptionRunnable<? extends E>
the other task
before
)

Returns a runnable which runs the given task and then this task.

public void
run()

Run the operation.

Method Detail

andThenback to summary
public default ExceptionRunnable<E> andThen(ExceptionRunnable<? extends E> after)

Returns a runnable which runs this task and then the given task.

Parameters
after:ExceptionRunnable<? extends E>

the other task

Returns:ExceptionRunnable<E>

a runnable which runs this task and then the given task

composeback to summary
public default ExceptionRunnable<E> compose(ExceptionRunnable<? extends E> before)

Returns a runnable which runs the given task and then this task.

Parameters
before:ExceptionRunnable<? extends E>

the other task

Returns:ExceptionRunnable<E>

a runnable which runs the given task and then this task

runback to summary
public void run() throws ExceptionPredicate:E

Run the operation.

Exceptions
ExceptionPredicate:E:
if an exception occurs