类 HazelcastInstanceFactory
- java.lang.Object
- org.springframework.boot.autoconfigure.hazelcast.HazelcastInstanceFactory
public class HazelcastInstanceFactory extends Object
Factory that can be used to create aHazelcastInstance
.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 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.
构造器详细资料
HazelcastInstanceFactory
public HazelcastInstanceFactory(org.springframework.core.io.Resource configLocation) throws IOException
Create aHazelcastInstanceFactory
for the specified configuration location.- 参数:
configLocation
- the location of the configuration file- 抛出:
IOException
- if the configuration location could not be read
HazelcastInstanceFactory
public HazelcastInstanceFactory(com.hazelcast.config.Config config)
Create aHazelcastInstanceFactory
for the specified configuration.- 参数:
config
- the configuration
方法详细资料
getHazelcastInstance
public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
Get theHazelcastInstance
.- 返回:
- the
HazelcastInstance