Module com.hazelcast.hibernate53
Package com.hazelcast.hibernate.instance
Interface IHazelcastInstanceLoader
public interface IHazelcastInstanceLoader
Factory interface to build Hazelcast instances and configure them depending
on configuration.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Properties props) Applies a set of properties to the factorycom.hazelcast.core.HazelcastInstanceCreate a newHazelcastInstanceor loads an already existing instances by it's name.voidTries to shutdown a HazelcastInstance
-
Method Details
-
configure
Applies a set of properties to the factory- Parameters:
props- properties to apply
-
loadInstance
com.hazelcast.core.HazelcastInstance loadInstance() throws org.hibernate.cache.CacheExceptionCreate a newHazelcastInstanceor loads an already existing instances by it's name.- Returns:
- new or existing HazelcastInstance (either client or node mode)
- Throws:
org.hibernate.cache.CacheException- all exceptions wrapped to CacheException
-
unloadInstance
void unloadInstance() throws org.hibernate.cache.CacheExceptionTries to shutdown a HazelcastInstance- Throws:
org.hibernate.cache.CacheException- all exceptions wrapped to CacheException
-