public class EventPublisher
extends java.lang.Object
Constructor and Description |
---|
EventPublisher(ClientMessageRouter router)
Creates a new EventPublisher instance using the provided
ClientMessageRouter instance for communications. |
Modifier and Type | Method and Description |
---|---|
void |
publish(NetworkDestination destination,
Event event)
Publishes a
Event via the client's
ClientMessageRouter . |
static MendelMessage |
wrapEvent(Event event)
Wraps a MendelEvent inside an EventContainer, and places the container
inside a MendelMessage, ready to be transmitted across the network.
|
public EventPublisher(ClientMessageRouter router)
ClientMessageRouter
instance for communications.public void publish(NetworkDestination destination, Event event) throws java.io.IOException
Event
via the client's
ClientMessageRouter
.java.io.IOException
public static MendelMessage wrapEvent(Event event) throws java.io.IOException
java.io.IOException