Package com.cloudimpl.outstack.runtime
Class UnboundedCommandHandler<T extends RootEntity,C extends Command,R>
java.lang.Object
com.cloudimpl.outstack.runtime.EntityCommandHandler<T,C,reactor.core.publisher.Mono<R>>
com.cloudimpl.outstack.runtime.UnboundedCommandHandler<T,C,R>
- All Implemented Interfaces:
CommandHandler<T>,Handler<T>
public abstract class UnboundedCommandHandler<T extends RootEntity,C extends Command,R> extends EntityCommandHandler<T,C,reactor.core.publisher.Mono<R>>
-
Field Summary
Fields inherited from class com.cloudimpl.outstack.runtime.EntityCommandHandler
cmdType, entityType, OK -
Constructor Summary
Constructors Constructor Description UnboundedCommandHandler() -
Method Summary
Modifier and Type Method Description reactor.core.publisher.Mono<R>apply(EntityContext<T> context, C command)reactor.core.publisher.Mono<EntityContext<T>>emitAsync(EntityContextProvider contextProvider, ICommand input)protected abstract reactor.core.publisher.Mono<R>execute(EntityContext<T> context, C command)Methods inherited from class com.cloudimpl.outstack.runtime.EntityCommandHandler
emit, getTenantRequirement, OK, validateInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UnboundedCommandHandler
public UnboundedCommandHandler()
-
-
Method Details
-
emitAsync
public reactor.core.publisher.Mono<EntityContext<T>> emitAsync(EntityContextProvider contextProvider, ICommand input) -
apply
- Overrides:
applyin classEntityCommandHandler<T extends RootEntity,C extends Command,reactor.core.publisher.Mono<R>>
-
execute
- Specified by:
executein classEntityCommandHandler<T extends RootEntity,C extends Command,reactor.core.publisher.Mono<R>>
-