Class AbstractAsyncSpecificationInterceptor<T,R>

java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,R>
io.micronaut.data.runtime.intercept.criteria.AbstractSpecificationInterceptor<T,R>
io.micronaut.data.runtime.intercept.criteria.async.AbstractAsyncSpecificationInterceptor<T,R>
Type Parameters:
T - The declaring type
R - The return type
All Implemented Interfaces:
DataInterceptor<T,R>
Direct Known Subclasses:
CountAsyncSpecificationInterceptor, DeleteAllAsyncSpecificationInterceptor, ExistsAsyncSpecificationInterceptor, FindAllAsyncSpecificationInterceptor, FindOneAsyncSpecificationInterceptor, FindPageAsyncSpecificationInterceptor, UpdateAllAsyncSpecificationInterceptor

@Internal public abstract class AbstractAsyncSpecificationInterceptor<T,R> extends AbstractSpecificationInterceptor<T,R>
Abstract async specification interceptor.
Since:
3.2
Author:
Denis Stepanov
  • Field Details

  • Constructor Details

    • AbstractAsyncSpecificationInterceptor

      protected AbstractAsyncSpecificationInterceptor(RepositoryOperations operations)
      Default constructor.
      Parameters:
      operations - The operations
  • Method Details

    • findAllAsync

      @NonNull protected final @NonNull CompletionStage<Iterable<Object>> findAllAsync(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,R> context)
    • 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,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)
    • convertNumberToReturnType

      @Nullable protected @Nullable Number convertNumberToReturnType(io.micronaut.aop.MethodInvocationContext<?,?> context, Number number)
      Convert a number argument if necessary.
      Parameters:
      context - The method context
      number - The number
      Returns:
      The result