Class SugarMessageProcessor
java.lang.Object
it.polimi.ingsw.communication.sugar_framework.message_processing.SugarMessageProcessor
- Direct Known Subclasses:
AuthController,CommunicationController,GameClient,GameController,GamesManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrop(SugarMessage msg, String reason) final voidprocess(SugarMessage message) Executes all @SugarMessageHandler(s) annotated methods in this class that match this method's signature, if none is found, executes the "base()" method (if it exists)final SugarMessageprocess(SugarMessage message, Peer sender) Executes all @SugarMessageHandler(s) annotated methods in this class that match this method's signature, if none is found, executes the "base()" method (if it exists)final SugarMessageprocessFromLowerLayers(SugarMessage message, Peer receiver)
-
Constructor Details
-
SugarMessageProcessor
public SugarMessageProcessor()
-
-
Method Details
-
process
Executes all @SugarMessageHandler(s) annotated methods in this class that match this method's signature, if none is found, executes the "base()" method (if it exists)- Parameters:
message- any Message objectsender- the Peer that sent the message
-
processFromLowerLayers
-
process
Executes all @SugarMessageHandler(s) annotated methods in this class that match this method's signature, if none is found, executes the "base()" method (if it exists)- Parameters:
message- any Message object
-
drop
-