Class Echo

    • Constructor Summary

      Constructors 
      Constructor Description
      Echo()  
      Echo​(java.lang.String input)  
    • Constructor Detail

      • Echo

        public Echo()
      • Echo

        public Echo​(java.lang.String input)
    • Method Detail

      • call

        public java.lang.String call()
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.String>
      • writeData

        public void writeData​(ObjectDataOutput out)
                       throws java.io.IOException
        Description copied from interface: DataSerializable
        Writes object fields to output stream
        Specified by:
        writeData in interface DataSerializable
        Parameters:
        out - output
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
      • readData

        public void readData​(ObjectDataInput in)
                      throws java.io.IOException
        Description copied from interface: DataSerializable
        Reads fields from the input stream
        Specified by:
        readData in interface DataSerializable
        Parameters:
        in - input
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the input stream has been closed.