com.hazelcast.console

## Class SimulateLoadTask

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

- All Implemented Interfaces:
    HazelcastInstanceAware, Serializable, Callable

      public final class SimulateLoadTask
      extends Object
      implements Callable, Serializable, HazelcastInstanceAware

  A simulated load test.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimulateLoadTask(int delay, int taskId, String latchId)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `call()`
    `void` | `setHazelcastInstance(HazelcastInstance hazelcastInstance)` Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.

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

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

- - ### Constructor Detail

    - #### SimulateLoadTask

          public SimulateLoadTask(int delay,
                                  int taskId,
                                  String latchId)

  - ### Method Detail

    - #### 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

    - #### call

          public Object call()
                      throws Exception

      Specified by:
        `call` in interface `Callable`
      Throws:
        `Exception`

Copyright © 2019. All rights reserved.