games.strategy.engine.message
Class UnifiedMessengerHub

java.lang.Object
  extended by games.strategy.engine.message.UnifiedMessengerHub
All Implemented Interfaces:
IConnectionChangeListener, IMessageListener

public class UnifiedMessengerHub
extends java.lang.Object
implements IMessageListener, IConnectionChangeListener


Constructor Summary
UnifiedMessengerHub(IMessenger messenger, UnifiedMessenger localUnified)
           
 
Method Summary
 void connectionAdded(INode to)
          A connection has been added.
 void connectionRemoved(INode to)
          A connection has been removed.
 void messageReceived(java.io.Serializable msg, INode from)
           
 void waitForNodesToImplement(java.lang.String endPointName, long timeoutMS)
          Wait for the messenger to know about the given endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnifiedMessengerHub

public UnifiedMessengerHub(IMessenger messenger,
                           UnifiedMessenger localUnified)
Method Detail

messageReceived

public void messageReceived(java.io.Serializable msg,
                            INode from)
Specified by:
messageReceived in interface IMessageListener

waitForNodesToImplement

public void waitForNodesToImplement(java.lang.String endPointName,
                                    long timeoutMS)
Wait for the messenger to know about the given endpoint.

Parameters:
endPointName -
timeout -

connectionAdded

public void connectionAdded(INode to)
Description copied from interface: IConnectionChangeListener
A connection has been added.

Specified by:
connectionAdded in interface IConnectionChangeListener

connectionRemoved

public void connectionRemoved(INode to)
Description copied from interface: IConnectionChangeListener
A connection has been removed.

Specified by:
connectionRemoved in interface IConnectionChangeListener