public interface EventEmitter
EventCollection
next depending on the PersistenceEventManager implementation will provide the
actual events on three phases:
Modifier and Type | Method and Description |
---|---|
void |
apply(Collection<InstanceView<?>> data)
Indicates that given collection of events can be safely transferred to external systems
|
void |
close()
Closes any resources used by emitter to interact with external system
|
void |
deliver(Collection<InstanceView<?>> data)
Invoked just before persistence layer is completed - e.g. beforeCompletion in JTA transaction
|
void |
drop(Collection<InstanceView<?>> data)
Indicates that given collection of events should be discarded
|
EventCollection |
newCollection()
Returns new instance of EventCollection to be used while collecting events
|
void deliver(Collection<InstanceView<?>> data)
data
- complete view of eventsvoid apply(Collection<InstanceView<?>> data)
data
- complete view of eventsvoid drop(Collection<InstanceView<?>> data)
data
- complete view of eventsEventCollection newCollection()
void close()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.