Class ChatServiceD2

  • All Implemented Interfaces:
    IChatService
    Direct Known Subclasses:
    ChatServiceD3

    public class ChatServiceD2
    extends java.lang.Object
    implements IChatService
    Chat service implementation.
    • Field Detail

      • format

        protected java.text.DateFormat format
        The time format.
      • gui

        protected ChatGuiD2 gui
        The user interface.
    • Constructor Detail

      • ChatServiceD2

        public ChatServiceD2()
    • Method Detail

      • startService

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

        public void shutdownService()
        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.