org.springframework.boot.autoconfigure.hazelcast

Class HazelcastClientFactory

  • java.lang.Object
    • org.springframework.boot.autoconfigure.hazelcast.HazelcastClientFactory


  • public class HazelcastClientFactory
    extends Object
    Factory that can be used to create a client HazelcastInstance.
    Since:
    2.0.0
    Author:
    Vedran Pavic
    • Constructor Detail

      • HazelcastClientFactory

        public HazelcastClientFactory(Resource clientConfigLocation)
                               throws IOException
        Create a HazelcastClientFactory 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 a HazelcastClientFactory for the specified configuration.
        Parameters:
        clientConfig - the configuration
    • Method Detail

      • getHazelcastInstance

        public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
        Get the HazelcastInstance.
        Returns:
        the HazelcastInstance