public interface MapLoaderLifecycleSupport
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Hazelcast will call this method before shutting down.
|
void |
init(HazelcastInstance hazelcastInstance,
Properties properties,
String mapName)
Initializes this MapLoader implementation.
|
void init(HazelcastInstance hazelcastInstance, Properties properties, String mapName)
MapLoader
is configured, can be obtained from the
hazelcastInstance
in this method's implementation.
On members joining a cluster, this method is executed during finalization
of the join operation, therefore care should be taken to adhere to the
rules for PostJoinAwareService.getPostJoinOperation()
.
If the implementation executes operations which may wait on locks or otherwise
block (e.g. waiting for network operations), this may result in a time-out and
obstruct the new member from joining the cluster. If blocking operations are
required for initialization of the MapLoader
, consider deferring them
with a lazy initialization scheme.
hazelcastInstance
- HazelcastInstance of this mapLoader.properties
- Properties set for this mapStore. see MapStoreConfigmapName
- name of the map.void destroy()
Copyright © 2018 Hazelcast, Inc.. All rights reserved.