Class AbstractConvertCompletionStageInterceptor<T>
- java.lang.Object
-
- io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,java.util.concurrent.CompletionStage<R>>
-
- io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor<java.lang.Object,T>
-
- io.micronaut.data.runtime.intercept.async.AbstractConvertCompletionStageInterceptor<T>
-
- Type Parameters:
T- the value type
- All Implemented Interfaces:
io.micronaut.data.intercept.DataInterceptor<java.lang.Object,java.util.concurrent.CompletionStage<T>>
- Direct Known Subclasses:
DefaultFindAllAsyncInterceptor,DefaultFindByIdAsyncInterceptor,DefaultFindOneAsyncInterceptor,DefaultFindPageAsyncInterceptor,DefaultFindSliceAsyncInterceptor
@Internal public abstract class AbstractConvertCompletionStageInterceptor<T> extends AbstractAsyncInterceptor<java.lang.Object,T>
Abstract asynchronous interceptor implementation with a result conversion.- Since:
- 3.5.0
-
-
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
operations, preparedQueryResolver
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractConvertCompletionStageInterceptor(io.micronaut.data.operations.RepositoryOperations datastore)Default constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<T>intercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.util.concurrent.CompletionStage<T>> context)protected abstract java.util.concurrent.CompletionStage<?>interceptCompletionStage(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.util.concurrent.CompletionStage<T>> 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
convertNumberArgumentIfNecessary, convertOne, 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
-
-
-
-
Method Detail
-
interceptCompletionStage
protected abstract java.util.concurrent.CompletionStage<?> interceptCompletionStage(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.util.concurrent.CompletionStage<T>> context)Intercept CompletionStage.- Parameters:
methodKey- The method keycontext- The context- Returns:
- the result publisher
-
-