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,​java.util.concurrent.CompletionStage<java.lang.Long>>

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

      • DefaultCountAsyncInterceptor

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

      • intercept

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