Package org.powertac.server
Class MessageRouter
java.lang.Object
org.powertac.server.MessageRouter
- All Implemented Interfaces:
InitializationService
@Service public class MessageRouter extends Object implements InitializationService
-
Constructor Summary
Constructors Constructor Description MessageRouter() -
Method Summary
Modifier and Type Method Description Set<Object>getRegistrations(Object message)returns the registrations for the given messageStringinitialize(Competition competition, List<String> completedInits)voidrecycle()Initializes the message listener registrations at the pre-game phase, once per game.voidregisterBrokerMessageListener(Object listener, Class<?> clazz)booleanroute(Object message)
-
Constructor Details
-
MessageRouter
public MessageRouter()
-
-
Method Details
-
getRegistrations
returns the registrations for the given message -
registerBrokerMessageListener
-
recycle
public void recycle()Initializes the message listener registrations at the pre-game phase, once per game. -
initialize
- Specified by:
initializein interfaceInitializationService
-
route
-