Interface ConfigurableService

  • All Known Subinterfaces:
    CoreService

    public interface ConfigurableService
    Lifecycle interface for services that require a one time configuration pre-processing.

    Services can implement this interface in order to perform a one time configuration pre-processing and validation. The configure(ConfigurationContext) method of this interface gets called only once by a Hekate instance right after the service gets constructed and its dependencies are resolved. This method never gets called again even if node leaves and then rejoins the cluster.

    • Method Detail

      • configure

        void configure​(ConfigurationContext ctx)
        Configures this service.
        Parameters:
        ctx - Configuration context.