コード例 #1
0
 @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);
 }
コード例 #2
0
 protected void processUpperCase(String aString) {
   super.processUpperCase(aString);
   relayer.relayOthers(new AMessageWithSource(userName, userName + " said:" + aString));
 }