Class DefaultCountAsyncInterceptor<T>

Type Parameters:
T - The declaring type
All Implemented Interfaces:
io.micronaut.data.intercept.async.CountAsyncInterceptor<T>, io.micronaut.data.intercept.DataInterceptor<T,CompletionStage<Long>>

public class DefaultCountAsyncInterceptor<T> extends AbstractAsyncInterceptor<T,Long> implements io.micronaut.data.intercept.async.CountAsyncInterceptor<T>
Default implementation of CountAsyncInterceptor.
Since:
1.0.0
  • Constructor Details

    • DefaultCountAsyncInterceptor

      protected DefaultCountAsyncInterceptor(io.micronaut.data.operations.RepositoryOperations datastore)
      Default constructor.
      Parameters:
      datastore - The operations
  • Method Details

    • intercept

      public CompletionStage<Long> intercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,CompletionStage<Long>> context)
      Specified by:
      intercept in interface io.micronaut.data.intercept.DataInterceptor<T,CompletionStage<Long>>