public class Event<T> extends Object implements Serializable
EventBus.EventBus.publish(Object, Object),
Serialized Form| Constructor and Description |
|---|
Event(EventBus eventBus,
Object source,
T payload) |
Event(EventBus eventBus,
Object source,
T payload,
String topic) |
| Modifier and Type | Method and Description |
|---|---|
EventBus |
getEventBus()
Gets the event bus on which the event was originally published.
|
T |
getPayload()
Gets the payload of the event.
|
EventScope |
getScope()
Gets the scope of the event.
|
Object |
getSource()
Gets the object that published the event on the event bus.
|
long |
getTimestamp()
Gets the timestamp when the event was published on the event bus.
|
String |
getTopic()
Gets the string which specifies the topic of the event on the event bus.
|
String |
toString() |
public EventBus getEventBus()
null.public EventScope getScope()
null.public Object getSource()
null.public String getTopic()
null.public long getTimestamp()
public T getPayload()
null.Copyright © 2017. All rights reserved.