Interface CallbackDecorator
-
- All Superinterfaces:
MutinyInterceptor
public interface CallbackDecorator extends 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 returns 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
All Methods Instance Methods Default Methods Modifier and Type Method Description default <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 java.lang.Runnabledecorate(java.lang.Runnable runnable)Allows decorating aRunnable.default <T1,T2>
java.util.function.BiConsumer<T1,T2>decorate(java.util.function.BiConsumer<T1,T2> consumer)Allows decorating aBiConsumer.default <I1,I2,O>
java.util.function.BiFunction<I1,I2,O>decorate(java.util.function.BiFunction<I1,I2,O> function)Allows decorating aBiFunction.default <T> java.util.function.BinaryOperator<T>decorate(java.util.function.BinaryOperator<T> operator)Allows decorating aBinaryOperator.default java.util.function.BooleanSupplierdecorate(java.util.function.BooleanSupplier supplier)Allows decorating aBooleanSupplier.default <T> java.util.function.Consumer<T>decorate(java.util.function.Consumer<T> consumer)Allows decorating aConsumer.default <I,O>
java.util.function.Function<I,O>decorate(java.util.function.Function<I,O> function)Allows decorating aFunction.default java.util.function.LongConsumerdecorate(java.util.function.LongConsumer consumer)Allows decorating aLongConsumer.default <T> java.util.function.Predicate<T>decorate(java.util.function.Predicate<T> predicate)Allows decorating aPredicate.default <T> java.util.function.Supplier<T>decorate(java.util.function.Supplier<T> supplier)Allows decorating aSupplier.-
Methods inherited from interface io.smallrye.mutiny.infrastructure.MutinyInterceptor
ordinal
-
-
-
-
Method Detail
-
decorate
default <T> java.util.function.Supplier<T> decorate(java.util.function.Supplier<T> supplier)
Allows decorating aSupplier.- Type Parameters:
T- the produced type- Parameters:
supplier- the supplier- Returns:
- the decorated supplier.
-
decorate
default <T> java.util.function.Consumer<T> decorate(java.util.function.Consumer<T> consumer)
Allows decorating aConsumer.- Type Parameters:
T- the consumed type- Parameters:
consumer- the consumer- Returns:
- the decorated consumer.
-
decorate
default java.util.function.LongConsumer decorate(java.util.function.LongConsumer consumer)
Allows decorating aLongConsumer.- Parameters:
consumer- the consumer- Returns:
- the decorated consumer.
-
decorate
default java.lang.Runnable decorate(java.lang.Runnable runnable)
Allows decorating aRunnable.- Parameters:
runnable- the runnable- Returns:
- the decorated runnable
-
decorate
default <T1,T2> java.util.function.BiConsumer<T1,T2> decorate(java.util.function.BiConsumer<T1,T2> consumer)
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
default <I,O> java.util.function.Function<I,O> decorate(java.util.function.Function<I,O> function)
Allows decorating aFunction.- Type Parameters:
I- the input typeO- the output type- Parameters:
function- the function- Returns:
- the decorated function
-
decorate
default <I1,I2,I3,O> Functions.Function3<I1,I2,I3,O> decorate(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,I3,I4,O> Functions.Function4<I1,I2,I3,I4,O> decorate(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,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.- 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,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.- 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,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.- 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,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.- 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,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.- 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
default <I1,I2,O> java.util.function.BiFunction<I1,I2,O> decorate(java.util.function.BiFunction<I1,I2,O> function)
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
default <T> java.util.function.BinaryOperator<T> decorate(java.util.function.BinaryOperator<T> operator)
Allows decorating aBinaryOperator.- Type Parameters:
T- the type of the parameters- Parameters:
operator- the operator- Returns:
- the decorated binary operator
-
decorate
default <T1,T2,T3> Functions.TriConsumer<T1,T2,T3> decorate(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
default java.util.function.BooleanSupplier decorate(java.util.function.BooleanSupplier supplier)
Allows decorating aBooleanSupplier.- Parameters:
supplier- the supplier- Returns:
- the decorated boolean supplier
-
decorate
default <T> java.util.function.Predicate<T> decorate(java.util.function.Predicate<T> predicate)
Allows decorating aPredicate.- Type Parameters:
T- the type tested by the predicate- Parameters:
predicate- the predicate- Returns:
- the decorated predicate
-
-