Informer¶
- 
public class Informer<DataType extends Object> extends Participant¶
- This class offers a method to publish events to a channel, reaching all participating Listeners. This n:m-communication is one of the basic communication patterns offered by RSB. - Author
- swrede, rgaertne, jschaefe, jwienke 
- Parameters
- <DataType> – The type of data sent by this informer 
 
Constructors¶
Informer¶
- 
 Informer(InformerCreateArgs args)¶
- Creates an informer for a specific data type with a given scope and with a specified config. - Parameters
- args – arguments used to create the new instance 
- Throws
- InitializeException – error initializing the informer 
 
Methods¶
getTypeInfo¶
publish¶
- 
public Event publish(Event event)¶
- Publish an - Eventto all subscribed participants.- Parameters
- event – the event to send 
- Throws
- RSBException – error sending event 
- IllegalArgumentException – if the event is not complete or does not match the type or scope settings of the informer 
 
- Returns
- modified event with set timing information 
 
publish¶
- 
public Event publish(DataType data)¶
- Publish data (of type DataType) to all subscribed participants. - Parameters
- data – data to send with default setting from the informer 
- Throws
- RSBException – error sending event 
- Returns
- generated event