Class DefaultProcedureReturningManyAsyncInterceptor<T,R>

java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,CompletionStage<? extends R>>
io.micronaut.data.runtime.intercept.async.DefaultProcedureReturningManyAsyncInterceptor<T,R>
Type Parameters:
T - The return type
R - The result type
All Implemented Interfaces:
ProcedureReturningManyAsyncInterceptor<T,R>, DataInterceptor<T,CompletionStage<? extends Iterable<R>>>

@Internal public final class DefaultProcedureReturningManyAsyncInterceptor<T,R> extends AbstractQueryInterceptor<T,CompletionStage<? extends R>> implements ProcedureReturningManyAsyncInterceptor<T,R>
The default implementation of ProcedureReturningManyAsyncInterceptor.
Since:
4.2.0
Author:
Denis Stepanov
  • Field Details

  • Method Details

    • intercept

      public CompletionStage<? extends Iterable<R>> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,CompletionStage<? extends Iterable<R>>> context)
      Description copied from interface: DataInterceptor
      Intercepts a data method execution.
      Specified by:
      intercept in interface DataInterceptor<T,R>
      Parameters:
      methodKey - The method key
      context - The context
      Returns:
      The result
    • getReturnType

      protected final io.micronaut.core.type.Argument<?> getReturnType(io.micronaut.aop.MethodInvocationContext<?,?> context)
      Description copied from class: AbstractQueryInterceptor
      Returns the return type.
      Overrides:
      getReturnType in class AbstractQueryInterceptor<T,CompletionStage<? extends R>>
      Parameters:
      context - The context
      Returns:
      the return type
    • findReturnType

      protected final io.micronaut.core.type.Argument<?> findReturnType(io.micronaut.aop.MethodInvocationContext<?,?> context, io.micronaut.core.type.Argument<?> defaultArg)