com.hazelcast.core
Interface HazelcastInstanceAware
- All Known Subinterfaces:
- SecureCallable<V>
- All Known Implementing Classes:
- Echo, MemberImpl, RunnableAdapter, 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.
setHazelcastInstance
void setHazelcastInstance(HazelcastInstance hazelcastInstance)
- Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
- Parameters:
hazelcastInstance
- the HazelcastInstance reference
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.