mud.server
Class EventBroadcaster
java.lang.Object
mud.server.EventBroadcaster
public class EventBroadcaster
- extends java.lang.Object
Event broadcaster singleton class. Use this to send publishing information to
the clients
- Author:
- Phyx
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static EventBroadcaster getInstance(ServerImpl server,
int maxthreads)
throws java.lang.InstantiationException
- Throws:
java.lang.InstantiationException
getInstance
public static EventBroadcaster getInstance()
throws java.lang.InstantiationException
- Throws:
java.lang.InstantiationException
sendToRoom
public void sendToRoom(int roomid,
Event event)
sendToAll
public void sendToAll(Event event)
sendToSingle
public void sendToSingle(Event event,
ClientConnection client)
start
public void start()
stop
public void stop()