Interface HazelcastConfigurer

All Known Implementing Classes:
JdbcHazelcastConfigurer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HazelcastConfigurer
Strategy interface for building a Hazelcast Config programmatically.

The default implementation is JdbcHazelcastConfigurer, which configures Hazelcast with a JDBC data source for persistence. In standalone mode an embedded H2 database is used automatically; in clustered mode an external JDBC URL must be supplied.

Advanced users can implement this interface to supply a fully custom Hazelcast configuration. Those who prefer file-based configuration can delegate to HazelcastConfigLoader.load(String, java.util.Map) inside their implementation to base it on a YAML or XML descriptor.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    com.hazelcast.config.Config
    Builds a Hazelcast Config for the given context.
  • Method Details

    • buildConfig

      com.hazelcast.config.Config buildConfig(HazelcastConfigurerContext ctx)
      Builds a Hazelcast Config for the given context. The returned config must not yet have a HazelcastInstance started against it.
      Parameters:
      ctx - context carrying work directory, clustering mode, and cluster name
      Returns:
      a fully-configured (but not yet started) Hazelcast Config