Class HazelcastClientFactory
- java.lang.Object
- org.springframework.boot.autoconfigure.hazelcast.HazelcastClientFactory
public class HazelcastClientFactory extends Object
Factory that can be used to create a clientHazelcastInstance
.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description 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.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.hazelcast.core.HazelcastInstance
getHazelcastInstance()
Get theHazelcastInstance
.
Constructor Detail
HazelcastClientFactory
public HazelcastClientFactory(org.springframework.core.io.Resource clientConfigLocation) throws IOException
Create aHazelcastClientFactory
for the specified configuration location.- Parameters:
clientConfigLocation
- the location of the configuration file- Throws:
IOException
- if the configuration location could not be read
HazelcastClientFactory
public HazelcastClientFactory(com.hazelcast.client.config.ClientConfig clientConfig)
Create aHazelcastClientFactory
for the specified configuration.- Parameters:
clientConfig
- the configuration
Method Detail
getHazelcastInstance
public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
Get theHazelcastInstance
.- Returns:
- the
HazelcastInstance