void checkInit() { if (shouldInitialize && !initialized) { synchronized (initLock) { if (!initialized) { ((MapLoaderLifecycleSupport) impl).init(hazelcastInstance, properties, mapName); initialized = true; } } } }
public void destroy() { if (shouldInitialize && initialized) { synchronized (initLock) { if (initialized) { ((MapLoaderLifecycleSupport) impl).destroy(); initialized = false; } } } }