Class HazelcastInstanceFactory
- java.lang.Object
- org.springframework.boot.autoconfigure.hazelcast.HazelcastInstanceFactory
public class HazelcastInstanceFactory extends Object
Factory that can be used to create aHazelcastInstance
.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description HazelcastInstanceFactory(com.hazelcast.config.Config config)
Create aHazelcastInstanceFactory
for the specified configuration.HazelcastInstanceFactory(org.springframework.core.io.Resource configLocation)
Create aHazelcastInstanceFactory
for the specified configuration location.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.hazelcast.core.HazelcastInstance
getHazelcastInstance()
Get theHazelcastInstance
.
Constructor Detail
HazelcastInstanceFactory
public HazelcastInstanceFactory(org.springframework.core.io.Resource configLocation) throws IOException
Create aHazelcastInstanceFactory
for the specified configuration location.- Parameters:
configLocation
- the location of the configuration file- Throws:
IOException
- if the configuration location could not be read
HazelcastInstanceFactory
public HazelcastInstanceFactory(com.hazelcast.config.Config config)
Create aHazelcastInstanceFactory
for the specified configuration.- Parameters:
config
- the configuration
Method Detail
getHazelcastInstance
public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
Get theHazelcastInstance
.- Returns:
- the
HazelcastInstance