public interface StatisticsEventDispatcher
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(StatisticsEvent event)
Dispatches the given event.
|
boolean |
enabled()
Returns
true if there is somebody listening to events on the other
side. |
StatisticsEvent |
newEvent(String system,
String group,
double millis,
String type)
Creates a new event object to be dispatched.
|
void |
setExtraParameter(StatisticsEvent event,
String name,
com.google.gwt.core.client.JavaScriptObject value)
Sets the given extra parameter's value as a JavaScriptObject.
|
void |
setExtraParameter(StatisticsEvent event,
String name,
String value)
Sets the given extra parameter's value as a String.
|
boolean enabled()
true if there is somebody listening to events on the other
side.StatisticsEvent newEvent(String system, String group, double millis, String type)
StatisticsEventvoid setExtraParameter(StatisticsEvent event, String name, com.google.gwt.core.client.JavaScriptObject value)
event - the event to set the parameter on. This has to be an instance
returned by @{link newEvent(String, String, double, String).void setExtraParameter(StatisticsEvent event, String name, String value)
event - the event to set the parameter on. This has to be an instance
returned by @{link newEvent(String, String, double, String).void dispatch(StatisticsEvent event)
event - the event to dispatch. This has to be an instance
returned by @{link newEvent(String, String, double, String).Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.