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 aHazelcastClientFactoryfor the specified configuration.HazelcastClientFactory(org.springframework.core.io.Resource clientConfigLocation)Create aHazelcastClientFactoryfor the specified configuration location.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.hazelcast.core.HazelcastInstancegetHazelcastInstance()Get theHazelcastInstance.
Constructor Detail
HazelcastClientFactory
public HazelcastClientFactory(org.springframework.core.io.Resource clientConfigLocation) throws IOException
Create aHazelcastClientFactoryfor 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 aHazelcastClientFactoryfor the specified configuration.- Parameters:
clientConfig- the configuration
Method Detail
getHazelcastInstance
public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
Get theHazelcastInstance.- Returns:
- the
HazelcastInstance