Class AbstractReactiveInterceptor<T,R>

java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,R>
io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor<T,R>
Type Parameters:
T - The declaring type
R - The return type
All Implemented Interfaces:
DataInterceptor<T,R>
Direct Known Subclasses:
AbstractPublisherInterceptor, DefaultDeleteAllReactiveInterceptor, DefaultDeleteOneReactiveInterceptor, DefaultInsertAllReactiveInterceptor, DefaultInsertEntityReactiveInterceptor, DefaultInsertOneReactiveInterceptor, DefaultSaveAllReactiveInterceptor, DefaultSaveEntityReactiveInterceptor, DefaultSaveOneReactiveInterceptor, DefaultUpdateAllEntitiesReactiveInterceptor, DefaultUpdateEntityReactiveInterceptor

public abstract class AbstractReactiveInterceptor<T,R> extends AbstractQueryInterceptor<T,R>
Abstract reactive repository interceptor.
Since:
1.0.0
Author:
graemerocher
  • Field Details

  • Constructor Details

    • AbstractReactiveInterceptor

      protected AbstractReactiveInterceptor(@NonNull RepositoryOperations operations)
      Default constructor.
      Parameters:
      operations - The operations
  • Method Details

    • count

      protected org.reactivestreams.Publisher<Integer> count(org.reactivestreams.Publisher<?> publisher)
      Count the items.
      Parameters:
      publisher - the publisher
      Returns:
      the size
    • persistOrUpdateReactive

      protected final <E> org.reactivestreams.Publisher<E> persistOrUpdateReactive(io.micronaut.aop.MethodInvocationContext<T,?> context, E entity)
    • persistWithUpdateFallbackReactive

      protected final <E> org.reactivestreams.Publisher<E> persistWithUpdateFallbackReactive(io.micronaut.aop.MethodInvocationContext<T,?> context, E entity)