Interface HazelcastInstanceAware

All Known Subinterfaces:
SecureCallable<V>
All Known Implementing Classes:
Echo, 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

    Modifier and Type Method Description
    void setHazelcastInstance​(HazelcastInstance hazelcastInstance)
    Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
  • Method Details

    • setHazelcastInstance

      void setHazelcastInstance​(HazelcastInstance hazelcastInstance)
      Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
      Parameters:
      hazelcastInstance - the HazelcastInstance reference