mud.server
Class EventBroadcaster

java.lang.Object
  extended by 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

Method Summary
static EventBroadcaster getInstance()
           
static EventBroadcaster getInstance(ServerImpl server, int maxthreads)
           
 void sendToAll(Event event)
           
 void sendToRoom(int roomid, Event event)
           
 void sendToSingle(Event event, ClientConnection client)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()