org.springframework.boot.autoconfigure.hazelcast

Class HazelcastInstanceFactory

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


  • public class HazelcastInstanceFactory
    extends Object
    Factory that can be used to create a HazelcastInstance.
    Since:
    1.3.0
    Author:
    Stephane Nicoll, Phillip Webb
    • Constructor Detail

      • HazelcastInstanceFactory

        public HazelcastInstanceFactory(Resource configLocation)
                                 throws IOException
        Create a HazelcastInstanceFactory for the specified configuration location.
        Parameters:
        configLocation - the location of the configuration file
        Throws:
        IOException - if the configuration location could not be read
      • HazelcastInstanceFactory

        public HazelcastInstanceFactory(com.hazelcast.config.Config config)
        Create a HazelcastInstanceFactory for the specified configuration.
        Parameters:
        config - the configuration
    • Method Detail

      • getHazelcastInstance

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