- All Superinterfaces:
MutinyInterceptor
Intercept user callbacks.
Decorators are called when the user passes a callback to Mutiny and so decorators can modify the passed callback.
The default behavior is to return the user's callback, unchanged.
Decorators must not transform a user callback into null.
-
Field Summary
Fields inherited from interface io.smallrye.mutiny.infrastructure.MutinyInterceptor
DEFAULT_ORDINAL -
Method Summary
Modifier and TypeMethodDescriptiondefault <I1,I2, I3, O>
Functions.Function3<I1, I2, I3, O> decorate(Functions.Function3<I1, I2, I3, O> function) Allows decorating aFunctions.Function3.default <I1,I2, I3, I4, O>
Functions.Function4<I1, I2, I3, I4, O> decorate(Functions.Function4<I1, I2, I3, I4, O> function) Allows decorating aFunctions.Function4.default <I1,I2, I3, I4, I5, O>
Functions.Function5<I1, I2, I3, I4, I5, O> decorate(Functions.Function5<I1, I2, I3, I4, I5, O> function) Allows decorating aFunctions.Function5.default <I1,I2, I3, I4, I5, I6, O>
Functions.Function6<I1, I2, I3, I4, I5, I6, O> decorate(Functions.Function6<I1, I2, I3, I4, I5, I6, O> function) Allows decorating aFunctions.Function6.default <I1,I2, I3, I4, I5, I6, I7, O>
Functions.Function7<I1, I2, I3, I4, I5, I6, I7, O> decorate(Functions.Function7<I1, I2, I3, I4, I5, I6, I7, O> function) Allows decorating aFunctions.Function7.default <I1,I2, I3, I4, I5, I6, I7, I8, O>
Functions.Function8<I1, I2, I3, I4, I5, I6, I7, I8, O> decorate(Functions.Function8<I1, I2, I3, I4, I5, I6, I7, I8, O> function) Allows decorating aFunctions.Function8.default <I1,I2, I3, I4, I5, I6, I7, I8, I9, O>
Functions.Function9<I1, I2, I3, I4, I5, I6, I7, I8, I9, O> decorate(Functions.Function9<I1, I2, I3, I4, I5, I6, I7, I8, I9, O> function) Allows decorating aFunctions.Function9.default <T1,T2, T3>
Functions.TriConsumer<T1, T2, T3> decorate(Functions.TriConsumer<T1, T2, T3> consumer) Allows decorating aFunctions.TriConsumer.default RunnableAllows decorating aRunnable.default <V> Callable<V> Allows decorating aCallable.default <T1,T2> BiConsumer <T1, T2> decorate(BiConsumer<T1, T2> consumer) Allows decorating aBiConsumer.default <I1,I2, O>
BiFunction<I1, I2, O> decorate(BiFunction<I1, I2, O> function) Allows decorating aBiFunction.default <T> BinaryOperator<T> decorate(BinaryOperator<T> operator) Allows decorating aBinaryOperator.default BooleanSupplierdecorate(BooleanSupplier supplier) Allows decorating aBooleanSupplier.default <T> Consumer<T> Allows decorating aConsumer.default <I,O> Function <I, O> Allows decorating aFunction.default LongConsumerdecorate(LongConsumer consumer) Allows decorating aLongConsumer.default <T> Predicate<T> Allows decorating aPredicate.default <T> Supplier<T> Allows decorating aSupplier.Methods inherited from interface io.smallrye.mutiny.infrastructure.MutinyInterceptor
ordinal
-
Method Details
-
decorate
Allows decorating aSupplier.- Type Parameters:
T- the produced type- Parameters:
supplier- the supplier- Returns:
- the decorated supplier.
-
decorate
Allows decorating aConsumer.- Type Parameters:
T- the consumed type- Parameters:
consumer- the consumer- Returns:
- the decorated consumer.
-
decorate
Allows decorating aLongConsumer.- Parameters:
consumer- the consumer- Returns:
- the decorated consumer.
-
decorate
Allows decorating aRunnable.- Parameters:
runnable- the runnable- Returns:
- the decorated runnable
-
decorate
Allows decorating aCallable.- Type Parameters:
V- the callable return type- Parameters:
callable- the callable- Returns:
- the decorated callable
-
decorate
Allows decorating aBiConsumer.- Type Parameters:
T1- the type of the first parameterT2- the type of the second parameter- Parameters:
consumer- the consumer- Returns:
- the decorated bi-consumer
-
decorate
Allows decorating aFunction.- Type Parameters:
I- the input typeO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
default <I1,I2, Functions.Function3<I1,I3, O> I2, decorateI3, O> (Functions.Function3<I1, I2, I3, O> function) Allows decorating aFunctions.Function3.- Type Parameters:
I1- the type of the 1st parameterI2- the type of the 2nd parameterI3- the type of the 3rd parameterO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
default <I1,I2, Functions.Function4<I1,I3, I4, O> I2, decorateI3, I4, O> (Functions.Function4<I1, I2, I3, I4, O> function) Allows decorating aFunctions.Function4.- Type Parameters:
I1- the type of the 1st parameterI2- the type of the 2nd parameterI3- the type of the 3rd parameterI4- the type of the 4th parameterO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
default <I1,I2, Functions.Function5<I1,I3, I4, I5, O> I2, decorateI3, I4, I5, O> (Functions.Function5<I1, I2, I3, I4, I5, O> function) Allows decorating aFunctions.Function5.- Type Parameters:
I1- the type of the 1st parameterI2- the type of the 2nd parameterI3- the type of the 3rd parameterI4- the type of the 4th parameterI5- the type of the 5th parameterO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
default <I1,I2, Functions.Function6<I1,I3, I4, I5, I6, O> I2, decorateI3, I4, I5, I6, O> (Functions.Function6<I1, I2, I3, I4, I5, I6, O> function) Allows decorating aFunctions.Function6.- Type Parameters:
I1- the type of the 1st parameterI2- the type of the 2nd parameterI3- the type of the 3rd parameterI4- the type of the 4th parameterI5- the type of the 5th parameterI6- the type of the 6th parameterO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
default <I1,I2, Functions.Function7<I1,I3, I4, I5, I6, I7, O> I2, decorateI3, I4, I5, I6, I7, O> (Functions.Function7<I1, I2, I3, I4, I5, I6, I7, O> function) Allows decorating aFunctions.Function7.- Type Parameters:
I1- the type of the 1st parameterI2- the type of the 2nd parameterI3- the type of the 3rd parameterI4- the type of the 4th parameterI5- the type of the 5th parameterI6- the type of the 6th parameterI7- the type of the 7th parameterO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
default <I1,I2, Functions.Function8<I1,I3, I4, I5, I6, I7, I8, O> I2, decorateI3, I4, I5, I6, I7, I8, O> (Functions.Function8<I1, I2, I3, I4, I5, I6, I7, I8, O> function) Allows decorating aFunctions.Function8.- Type Parameters:
I1- the type of the 1st parameterI2- the type of the 2nd parameterI3- the type of the 3rd parameterI4- the type of the 4th parameterI5- the type of the 5th parameterI6- the type of the 6th parameterI7- the type of the 7th parameterI8- the type of the 8th parameterO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
default <I1,I2, Functions.Function9<I1,I3, I4, I5, I6, I7, I8, I9, O> I2, decorateI3, I4, I5, I6, I7, I8, I9, O> (Functions.Function9<I1, I2, I3, I4, I5, I6, I7, I8, I9, O> function) Allows decorating aFunctions.Function9.- Type Parameters:
I1- the type of the 1st parameterI2- the type of the 2nd parameterI3- the type of the 3rd parameterI4- the type of the 4th parameterI5- the type of the 5th parameterI6- the type of the 6th parameterI7- the type of the 7th parameterI8- the type of the 8th parameterI9- the type of the 9th parameterO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
Allows decorating aBiFunction.- Type Parameters:
I1- the type of the 1st parameterI2- the type of the 2nd parameterO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
Allows decorating aBinaryOperator.- Type Parameters:
T- the type of the parameters- Parameters:
operator- the operator- Returns:
- the decorated binary operator
-
decorate
default <T1,T2, Functions.TriConsumer<T1,T3> T2, decorateT3> (Functions.TriConsumer<T1, T2, T3> consumer) Allows decorating aFunctions.TriConsumer.- Type Parameters:
T1- the type of the 1st parameterT2- the type of the 2nd parameterT3- the type of the 3rd parameter- Parameters:
consumer- the consumer- Returns:
- the decorated consumer
-
decorate
Allows decorating aBooleanSupplier.- Parameters:
supplier- the supplier- Returns:
- the decorated boolean supplier
-
decorate
Allows decorating aPredicate.- Type Parameters:
T- the type tested by the predicate- Parameters:
predicate- the predicate- Returns:
- the decorated predicate
-