public class ChannelEvent extends Object
IChannelPublisher instance.
a pushEvent is specific of a channel represented by a string and can contains some datas to send to the listener.
| Constructor and Description |
|---|
ChannelEvent(String channel)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addData(String key,
String data)
Add a data in the event.
|
String |
getChannel()
return the channel of the event
|
Map<String,String> |
getData()
Returns all data in the event
|
String |
getId() |
void |
setChannel(String channel)
set the channel of the event
|
void |
setId(String id) |
public ChannelEvent(String channel)
channel - channel where the event will be sentpublic void addData(String key, String data)
key - data keydata - data to add in the eventpublic String getChannel()
public Map<String,String> getData()
public String getId()
public void setChannel(String channel)
channel - event channelpublic void setId(String id)
Copyright © 2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.