com.hazelcast.hibernate.instance
Interface IHazelcastInstanceLoader


public interface IHazelcastInstanceLoader

Factory interface to build Hazelcast instances and configure them depending on configuration.


Method Summary
 void configure(Properties props)
          Applies a set of properties to the factory
 HazelcastInstance loadInstance()
          Create a new HazelcastInstance or loads an already existing instances by it's name.
 void unloadInstance()
          Tries to shutdown a HazelcastInstance
 

Method Detail

configure

void configure(Properties props)
Applies a set of properties to the factory

Parameters:
props - properties to apply

loadInstance

HazelcastInstance loadInstance()
                               throws org.hibernate.cache.CacheException
Create a new HazelcastInstance or 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.CacheException
Tries to shutdown a HazelcastInstance

Throws:
org.hibernate.cache.CacheException - all exceptions wrapped to CacheException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.