public interface EventDispatcher
| Modifier and Type | Method and Description |
|---|---|
void |
postEvent(Branch.NameKey branchName,
RefEvent event)
Post a stream event that is related to a branch
|
void |
postEvent(Change change,
ChangeEvent event)
Post a stream event that is related to a change
|
void |
postEvent(Event event)
Post a stream event generically.
|
void |
postEvent(Project.NameKey projectName,
ProjectEvent event)
Post a stream event that is related to a project.
|
void postEvent(Change change, ChangeEvent event) throws com.google.gwtorm.server.OrmException
change - The change that the event is related toevent - The event to postcom.google.gwtorm.server.OrmException - on failure to post the event due to DB errorvoid postEvent(Branch.NameKey branchName, RefEvent event)
branchName - The branch that the event is related toevent - The event to postvoid postEvent(Project.NameKey projectName, ProjectEvent event)
projectName - The project that the event is related to.event - The event to post.void postEvent(Event event) throws com.google.gwtorm.server.OrmException
If you are creating a RefEvent or ChangeEvent from scratch, it is more efficient to use the specific postEvent methods for those use cases.
event - The event to post.com.google.gwtorm.server.OrmException - on failure to post the event due to DB error