Class ChatServiceD1

  • All Implemented Interfaces:
    IChatService

    public class ChatServiceD1
    extends java.lang.Object
    implements IChatService
    Chat service implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChatServiceD1()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void message​(java.lang.String sender, java.lang.String text)
      Receives a chat message.
      IFuture<java.lang.Void> startService()
      Init the service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • format

        protected java.text.DateFormat format
        The time format.
    • Constructor Detail

      • ChatServiceD1

        public ChatServiceD1()
    • Method Detail

      • startService

        public IFuture<java.lang.Void> startService()
        Init the service.
      • message

        public void message​(java.lang.String sender,
                            java.lang.String text)
        Receives a chat message.
        Specified by:
        message in interface IChatService
        Parameters:
        sender - The sender's name.
        text - The message text.