public interface EventDispatcher
| Modifier and Type | Method and Description |
|---|---|
void |
postEvent(com.google.gerrit.reviewdb.client.Branch.NameKey branchName,
RefEvent event)
Post a stream event that is related to a branch
|
void |
postEvent(com.google.gerrit.reviewdb.client.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(com.google.gerrit.reviewdb.client.Project.NameKey projectName,
ProjectEvent event)
Post a stream event that is related to a project.
|
void postEvent(com.google.gerrit.reviewdb.client.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(com.google.gerrit.reviewdb.client.Branch.NameKey branchName,
RefEvent event)
branchName - The branch that the event is related toevent - The event to postvoid postEvent(com.google.gerrit.reviewdb.client.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