Class DefaultCountAsyncInterceptor<T>

    • Constructor Detail

      • DefaultCountAsyncInterceptor

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

      • intercept

        public java.util.concurrent.CompletionStage<java.lang.Long> intercept​(RepositoryMethodKey methodKey,
                                                                              io.micronaut.aop.MethodInvocationContext<T,​java.util.concurrent.CompletionStage<java.lang.Long>> context)
        Description copied from interface: DataInterceptor
        Intercepts a data method execution.
        Specified by:
        intercept in interface DataInterceptor<T,​java.util.concurrent.CompletionStage<java.lang.Long>>
        Parameters:
        methodKey - The method key
        context - The context
        Returns:
        The result