Class DefaultProcedureReturningOneAsyncInterceptor<T,R>
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,CompletionStage<R>>
io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor<T,R>
io.micronaut.data.runtime.intercept.async.DefaultProcedureReturningOneAsyncInterceptor<T,R>
- Type Parameters:
T
- The return typeR
- The result type
- All Implemented Interfaces:
ProcedureReturningOneAsyncInterceptor<T,
,R> DataInterceptor<T,
CompletionStage<R>>
@Internal
public class DefaultProcedureReturningOneAsyncInterceptor<T,R>
extends AbstractAsyncInterceptor<T,R>
implements ProcedureReturningOneAsyncInterceptor<T,R>
The default implementation of
ProcedureReturningManyAsyncInterceptor
.- Since:
- 4.2.0
- Author:
- Denis Stepanov
-
Field Summary
Fields inherited from class io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor
asyncDatastoreOperations, LIST_OF_OBJECTS
Fields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver
-
Method Summary
Modifier and TypeMethodDescriptionintercept
(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<R>> context) Intercepts a data method execution.Methods inherited from class io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor
convertNumberToReturnType, findReturnType, getReturnType
Methods 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
-
Method Details
-
intercept
public CompletionStage<R> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<R>> context) Description copied from interface:DataInterceptor
Intercepts a data method execution.- Specified by:
intercept
in interfaceDataInterceptor<T,
R> - Parameters:
methodKey
- The method keycontext
- The context- Returns:
- The result
-