Package com.cloudimpl.outstack.runtime
Class EntityEventHandler<T extends Entity,E extends Event<?>>
java.lang.Object
com.cloudimpl.outstack.runtime.EntityEventHandler<T,E>
- Type Parameters:
T-E-
- All Implemented Interfaces:
CommandHandler<T>,Handler<T>
public abstract class EntityEventHandler<T extends Entity,E extends Event<?>> extends java.lang.Object implements CommandHandler<T>
- Author:
- nuwan
-
Constructor Summary
Constructors Constructor Description EntityEventHandler() -
Method Summary
Modifier and Type Method Description voidaccept(EntityContext<T> context, E event)protected EntityContext<T>emit(EntityContextProvider.Transaction tx, E event)protected abstract voidexecute(EntityContext<T> context, E event)booleanisTenantFunction()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EntityEventHandler
public EntityEventHandler()
-
-
Method Details
-
isTenantFunction
public boolean isTenantFunction() -
accept
-
execute
-
emit
-