Class DefaultExistsByAsyncInterceptor<T>

    • Constructor Detail

      • DefaultExistsByAsyncInterceptor

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

      • intercept

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