@Override protected void sendMessage(Object aMessage) { MessageWithSource messageWithSource = new AMessageWithSource(myName, aMessage); if (participantChoice == ParticipantChoice.SERVER_ONLY) { return; } if (participantChoice == ParticipantChoice.SYMMETRIC_JOIN) // relayerProxy.relayOthers(SESSION_NAME, messageWithSource); relayerProxy.relayOthers(messageWithSource); else // relayerProxy.relay(SESSION_NAME, ((JoinerTrackingSessionObserver) observer).getJoiners(), // messageWithSource) ; relayerProxy.relay( ((JoinerTrackingSessionObserver) observer).getJoiners(), messageWithSource); }
protected void processUpperCase(String aString) { super.processUpperCase(aString); relayer.relayOthers(new AMessageWithSource(userName, userName + " said:" + aString)); }