T
- The declaring typepublic class DefaultCountAsyncInterceptor<T> extends AbstractAsyncInterceptor<T,java.lang.Long> implements CountAsyncInterceptor<T>
CountAsyncInterceptor
.asyncDatastoreOperations, LIST_OF_OBJECTS
operations, preparedQueryResolver
Modifier | Constructor and Description |
---|---|
protected |
DefaultCountAsyncInterceptor(RepositoryOperations datastore)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletionStage<java.lang.Long> |
intercept(RepositoryMethodKey methodKey,
io.micronaut.aop.MethodInvocationContext<T,java.util.concurrent.CompletionStage<java.lang.Long>> context)
Intercepts a data method execution.
|
convertNumberToReturnType, findReturnType, getReturnType
convertNumberArgumentIfNecessary, 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
protected DefaultCountAsyncInterceptor(RepositoryOperations datastore)
datastore
- The operationspublic java.util.concurrent.CompletionStage<java.lang.Long> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,java.util.concurrent.CompletionStage<java.lang.Long>> context)
DataInterceptor
intercept
in interface DataInterceptor<T,java.util.concurrent.CompletionStage<java.lang.Long>>
methodKey
- The method keycontext
- The context