类 HazelcastClientFactory
- java.lang.Object
- org.springframework.boot.autoconfigure.hazelcast.HazelcastClientFactory
public class HazelcastClientFactory extends Object
Factory that can be used to create a clientHazelcastInstance
.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 HazelcastClientFactory(com.hazelcast.client.config.ClientConfig clientConfig)
Create aHazelcastClientFactory
for the specified configuration.HazelcastClientFactory(org.springframework.core.io.Resource clientConfigLocation)
Create aHazelcastClientFactory
for the specified configuration location.
构造器详细资料
HazelcastClientFactory
public HazelcastClientFactory(org.springframework.core.io.Resource clientConfigLocation) throws IOException
Create aHazelcastClientFactory
for the specified configuration location.- 参数:
clientConfigLocation
- the location of the configuration file- 抛出:
IOException
- if the configuration location could not be read
HazelcastClientFactory
public HazelcastClientFactory(com.hazelcast.client.config.ClientConfig clientConfig)
Create aHazelcastClientFactory
for the specified configuration.- 参数:
clientConfig
- the configuration
方法详细资料
getHazelcastInstance
public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
Get theHazelcastInstance
.- 返回:
- the
HazelcastInstance