Class DefaultExistsByAsyncInterceptor<T>

  • Type Parameters:
    T - The declaring type
    All Implemented Interfaces:
    io.micronaut.data.intercept.async.ExistsByAsyncInterceptor<T>, io.micronaut.data.intercept.DataInterceptor<T,​java.util.concurrent.CompletionStage<java.lang.Boolean>>

    public class DefaultExistsByAsyncInterceptor<T>
    extends AbstractAsyncInterceptor<T,​java.lang.Boolean>
    implements io.micronaut.data.intercept.async.ExistsByAsyncInterceptor<T>
    The default implementation of ExistsByAsyncInterceptor.
    Since:
    1.0.0
    • Constructor Detail

      • DefaultExistsByAsyncInterceptor

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

      • intercept

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