Class AbstractCountConvertCompletionStageInterceptor
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,CompletionStage<R>>
io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor<Object,Object>
io.micronaut.data.runtime.intercept.async.AbstractCountConvertCompletionStageInterceptor
- All Implemented Interfaces:
DataInterceptor<Object,
CompletionStage<Object>>
- Direct Known Subclasses:
DefaultDeleteAllAsyncInterceptor
,DefaultDeleteOneAsyncInterceptor
,DefaultSaveAllAsyncInterceptor
,DefaultSaveEntityInterceptor
,DefaultSaveOneAsyncInterceptor
,DefaultUpdateAllAsyncEntitiesInterceptor
,DefaultUpdateAsyncInterceptor
,DefaultUpdateEntityAsyncInterceptor
@Internal
public abstract class AbstractCountConvertCompletionStageInterceptor
extends AbstractAsyncInterceptor<Object,Object>
Abstract asynchronous interceptor implementation with a result conversion.
- Since:
- 3.5.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
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionintercept
(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Object>> context) Intercepts a data method execution.protected abstract CompletionStage<?>
interceptCompletionStage
(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Object>> context) Intercept CompletionStage.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, getPageable, getPagedQuery, getParameterInRole, getParameterValueMap, getRequiredEntity, getRequiredParameterInRole, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, prepareQuery, prepareQuery, validateNullArguments
-
Constructor Details
-
AbstractCountConvertCompletionStageInterceptor
Default constructor.- Parameters:
datastore
- The operations
-
-
Method Details
-
interceptCompletionStage
protected abstract CompletionStage<?> interceptCompletionStage(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Object>> context) Intercept CompletionStage.- Parameters:
methodKey
- The method keycontext
- The context- Returns:
- the result publisher
-
intercept
public CompletionStage<Object> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Object>> context) Description copied from interface:DataInterceptor
Intercepts a data method execution.- Parameters:
methodKey
- The method keycontext
- The context- Returns:
- The result
-