@Singleton @InterceptorBean(value=AsyncPersistEventSource.class) public class AsyncPersistEventSourceInterceptor extends AbstractAsyncEventSourceInterceptor
interceptor
for persist
events.AbstractEventSourceInterceptor.EventGroup, AbstractEventSourceInterceptor.EventType
registry
Constructor and Description |
---|
AsyncPersistEventSourceInterceptor(io.micronaut.data.model.runtime.RuntimeEntityRegistry registry)
Constructs a new
AsyncPersistEventSourceInterceptor . |
Modifier and Type | Method and Description |
---|---|
protected AbstractEventSourceInterceptor.EventGroup |
getEventGroup()
Return the
EventGroup handled by this interceptor. |
protected AbstractEventSourceInterceptor.EventType |
getHandledPostEventType()
Return the
POST event type this interceptor wishes to emit. |
protected AbstractEventSourceInterceptor.EventType |
getHandledPreEventType()
Return the
PRE event type this interceptor wishes to emit. |
intercept
trigger
public AsyncPersistEventSourceInterceptor(io.micronaut.data.model.runtime.RuntimeEntityRegistry registry)
AsyncPersistEventSourceInterceptor
.registry
- the RuntimeEntityRegistry
protected AbstractEventSourceInterceptor.EventGroup getEventGroup()
AbstractEventSourceInterceptor
EventGroup
handled by this interceptor.getEventGroup
in class AbstractEventSourceInterceptor
EventGroup
handled by this interceptorprotected AbstractEventSourceInterceptor.EventType getHandledPreEventType()
AbstractEventSourceInterceptor
PRE
event type this interceptor wishes to emit.getHandledPreEventType
in class AbstractEventSourceInterceptor
PRE
event type this interceptor wishes to emitprotected AbstractEventSourceInterceptor.EventType getHandledPostEventType()
AbstractEventSourceInterceptor
POST
event type this interceptor wishes to emit.getHandledPostEventType
in class AbstractEventSourceInterceptor
POST
event type this interceptor wishes to emit