Class DefaultCountAsyncInterceptor<T>
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,CompletionStage<R>>
 
io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor<T,Long>
 
io.micronaut.data.runtime.intercept.async.DefaultCountAsyncInterceptor<T>
- Type Parameters:
- T- The declaring type
- All Implemented Interfaces:
- CountAsyncInterceptor<T>,- DataInterceptor<T,- CompletionStage<Long>> 
public class DefaultCountAsyncInterceptor<T>
extends AbstractAsyncInterceptor<T,Long>
implements CountAsyncInterceptor<T> 
Default implementation of 
CountAsyncInterceptor.- Since:
- 1.0.0
- Author:
- graemerocher
- 
Field SummaryFields inherited from class io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptorasyncDatastoreOperations, LIST_OF_OBJECTSFields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptorconversionService, operations, preparedQueryResolver
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDefaultCountAsyncInterceptor(RepositoryOperations datastore) Default constructor.
- 
Method SummaryModifier and TypeMethodDescriptionintercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<Long>> context) Intercepts a data method execution.Methods inherited from class io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptorconvertNumberToReturnType, findReturnType, getReturnTypeMethods inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptorconvertOne, convertOne, count, findEntitiesParameter, findEntityParameter, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getPageable, getPagedQuery, getParameterValueMap, getRequiredEntity, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, prepareQuery, prepareQuery, validateNullArguments
- 
Constructor Details- 
DefaultCountAsyncInterceptorDefault constructor.- Parameters:
- datastore- The operations
 
 
- 
- 
Method Details- 
interceptpublic CompletionStage<Long> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<Long>> context) Description copied from interface:DataInterceptorIntercepts a data method execution.- Specified by:
- interceptin interface- DataInterceptor<T,- CompletionStage<Long>> 
- Parameters:
- methodKey- The method key
- context- The context
- Returns:
- The result
 
 
-