Table of Contents |
---|
Micronaut is a microservice framework for building modular applications. This develops a configuration that bests works with Micronaut.
Documentation: https://micronaut-projects.github.io/micronaut-ignite/snapshot/guide/
Releases: https://github.com/micronaut-projects/micronaut-ignite/releases
Micronaut can span an instance of Ignite automatically. Below we review several configuration options.
...
Additional configuration can be applied on top of the default configuration by intercepting the bean when its created, Using the BeanCreatedEventListener.
Code Block | ||
---|---|---|
| ||
@Singleton public class IgniteConfigurationFactoryInterceptor implements BeanCreatedEventListener<DefaultIgniteConfiguration> { @Override public DefaultIgniteConfiguration onCreated(BeanCreatedEvent<DefaultIgniteConfiguration> event) { DefaultIgniteConfiguration configuration = event.getBean(); configuration.setIgniteInstanceName("instance-a"); return configuration; } } |
...