Class SharedServerClient.Receiver

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    SharedServerClient

    private class SharedServerClient.Receiver
    extends java.lang.Object
    implements java.lang.Runnable
    This helper class prints out the results that come back from the server. It is intended to run within a separate thread.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean done
      A flag indicating when the receiver thread should shut down.
      private java.io.PrintStream out
      The print-stream to output server results on.
    • Constructor Summary

      Constructors 
      Constructor Description
      Receiver​(java.io.PrintStream out)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      void shutdown()  
      • Methods inherited from class java.lang.Object

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

      • out

        private java.io.PrintStream out
        The print-stream to output server results on.
      • done

        private boolean done
        A flag indicating when the receiver thread should shut down.
    • Constructor Detail

      • Receiver

        public Receiver​(java.io.PrintStream out)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • shutdown

        public void shutdown()