com.hazelcast.console

## Class Echo

- java.lang.Object
- - com.hazelcast.console.Echo

- All Implemented Interfaces:
    HazelcastInstanceAware, DataSerializable, Callable<String>

      public class Echo
      extends Object
      implements Callable<String>, DataSerializable, HazelcastInstanceAware

  Echoes to screen.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Echo()`
    `Echo(String input)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `call()`
    `void` | `readData(ObjectDataInput in)` Reads fields from the input stream
    `void` | `setHazelcastInstance(HazelcastInstance hazelcastInstance)` Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
    `void` | `writeData(ObjectDataOutput out)` Writes object fields to output stream

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Echo

          public Echo()

    - #### Echo

          public Echo(String input)

  - ### Method Detail

    - #### call

          public String call()

      Specified by:
        `call` in interface `Callable<String>`

    - #### writeData

          public void writeData(ObjectDataOutput out)
                         throws IOException

      Description copied from interface: `DataSerializable`
      Writes object fields to output stream
      Specified by:
        `writeData` in interface `DataSerializable`
      Parameters:
        `out` - output
      Throws:
        `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 IOException

      Description copied from interface: `DataSerializable`
      Reads fields from the input stream
      Specified by:
        `readData` in interface `DataSerializable`
      Parameters:
        `in` - input
      Throws:
        `IOException` - if an I/O error occurs. In particular, an `IOException` may be thrown if the input stream has been closed.

    - #### setHazelcastInstance

          public void setHazelcastInstance(HazelcastInstance hazelcastInstance)

      Description copied from interface: `HazelcastInstanceAware`
      Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
      Specified by:
        `setHazelcastInstance` in interface `HazelcastInstanceAware`
      Parameters:
        `hazelcastInstance` - the HazelcastInstance reference

Copyright © 2019. All rights reserved.