com.hazelcast.core

## Interface HazelcastInstanceAware

- All Known Subinterfaces:
    SecureCallable<V>
  All Known Implementing Classes:
    Echo, EntryListenerConfig.MapListenerToEntryListenerAdapter, MemberImpl, SimulateLoadTask

      public interface HazelcastInstanceAware

  Used to get HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService. Before executing the Runnable/Callable Hazelcast will invoke `setHazelcastInstance(HazelcastInstance)` method with the reference to HazelcastInstance that is executing. This way the implementer will have a chance to get the reference to HazelcastInstance.

- - ### Method Summary

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

- - ### Method Detail

    - #### setHazelcastInstance

          void setHazelcastInstance(HazelcastInstance hazelcastInstance)

      Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
      Parameters:
        `hazelcastInstance` - the HazelcastInstance reference

Copyright © 2018. All rights reserved.