All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ligoj.bootstrap.resource.system.cache.CacheManagerAware Maven / Gradle / Ivy

There is a newer version: 3.1.22
Show newest version
/*
 * Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
 */
package org.ligoj.bootstrap.resource.system.cache;

import java.util.function.Function;

import com.hazelcast.cache.HazelcastCacheManager;
import com.hazelcast.config.CacheConfig;

/**
 * Callback when cache manager is built but not yet injected in the beans.
 */
@FunctionalInterface
public interface CacheManagerAware {

	/**
	 * Callback when cache manager is built but not yet injected in the beans.
	 * 
	 * @param cacheManager
	 *            The cache manger backed by {@link HazelcastCacheManager}.
	 * @param provider
	 *            The {@link CacheConfig} initializer accepting the cache name as {@link Function} parameter.
	 */
	void onCreate(HazelcastCacheManager cacheManager, Function> provider);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy