public class EventProducer
extends java.lang.Object
ClientMessageRouter
instance to a EventReactor
instance. This helps avoid message wrapping boilerplate every time an event
will be sent.Constructor and Description |
---|
EventProducer(ClientMessageRouter router,
EventReactor reactor) |
Modifier and Type | Method and Description |
---|---|
void |
publishEvent(NetworkDestination destination,
Event e) |
public EventProducer(ClientMessageRouter router, EventReactor reactor)
public void publishEvent(NetworkDestination destination, Event e) throws java.io.IOException
destination
- The server to publish the event to.e
- Event to be published.java.io.IOException