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:
io.micronaut.data.intercept.async.CountAsyncInterceptor<T>,io.micronaut.data.intercept.DataInterceptor<T,CompletionStage<Long>>
public class DefaultCountAsyncInterceptor<T>
extends AbstractAsyncInterceptor<T,Long>
implements io.micronaut.data.intercept.async.CountAsyncInterceptor<T>
Default implementation of
CountAsyncInterceptor.- Since:
- 1.0.0
-
Field Summary
Fields inherited from class io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor
asyncDatastoreOperations, LIST_OF_OBJECTSFields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultCountAsyncInterceptor(io.micronaut.data.operations.RepositoryOperations datastore) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionintercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<Long>> context) Methods inherited from class io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor
convertNumberToReturnType, findReturnType, getReturnTypeMethods inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getDeleteReturningBatchOperation, getDeleteReturningOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getLimit, getOffset, getPageable, getPageableInRole, getPagedQuery, getParameterInRole, getParameterValueMap, getRequiredEntity, getRequiredParameterInRole, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, validateNullArguments
-
Constructor Details
-
DefaultCountAsyncInterceptor
protected DefaultCountAsyncInterceptor(io.micronaut.data.operations.RepositoryOperations datastore) Default constructor.- Parameters:
datastore- The operations
-
-
Method Details
-
intercept
public CompletionStage<Long> intercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<Long>> context) - Specified by:
interceptin interfaceio.micronaut.data.intercept.DataInterceptor<T,CompletionStage<Long>>
-