org.enodeframework.eventing.ProcessingEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enode Show documentation
Show all versions of enode Show documentation
The enodeframework core implementation.
package org.enodeframework.eventing;
/**
* @author [email protected]
*/
public class ProcessingEvent {
private DomainEventStreamMessage message;
private ProcessingEventMailBox mailbox;
private IEventProcessContext processContext;
public ProcessingEvent(DomainEventStreamMessage message, IEventProcessContext processContext) {
this.message = message;
this.processContext = processContext;
}
public ProcessingEventMailBox getMailbox() {
return mailbox;
}
public void setMailbox(ProcessingEventMailBox mailbox) {
this.mailbox = mailbox;
}
public void complete() {
processContext.notifyEventProcessed();
if (mailbox != null) {
mailbox.completeRun();
}
}
public IEventProcessContext getProcessContext() {
return processContext;
}
public DomainEventStreamMessage getMessage() {
return message;
}
}