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.
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 TypeMethodDescriptioncom.hazelcast.config.ConfigBuilds a HazelcastConfigfor the given context.
-
Method Details
-
buildConfig
Builds a HazelcastConfigfor the given context. The returned config must not yet have aHazelcastInstancestarted against it.- Parameters:
ctx- context carrying work directory, clustering mode, and cluster name- Returns:
- a fully-configured (but not yet started) Hazelcast
Config
-