Class DefaultLeaderElectingControllerBuilder

java.lang.Object
io.micronaut.kubernetes.client.operator.controller.DefaultLeaderElectingControllerBuilder
All Implemented Interfaces:
LeaderElectingControllerBuilder

@Singleton public class DefaultLeaderElectingControllerBuilder extends Object implements LeaderElectingControllerBuilder
The default implementation of LeaderElectingControllerBuilder.
Since:
3.3
Author:
Pavol Gressa
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultLeaderElectingControllerBuilder(io.kubernetes.client.extended.leaderelection.LeaderElectionConfig leaderElectionConfig, io.micronaut.context.event.ApplicationEventPublisher<LeaseLostEvent> leaseLostEventApplicationEventPublisher, io.micronaut.context.event.ApplicationEventPublisher<LeaseAcquiredEvent> leaseAcquiredEventApplicationEventPublisher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull io.kubernetes.client.extended.controller.LeaderElectingController
    build(@NonNull ControllerConfiguration operator, @NonNull ResourceReconciler<?> resourceReconciler, @NonNull io.kubernetes.client.extended.controller.ControllerManager controllerManager)
    Builds the LeaderElectingController.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • DefaultLeaderElectingControllerBuilder

      public DefaultLeaderElectingControllerBuilder(io.kubernetes.client.extended.leaderelection.LeaderElectionConfig leaderElectionConfig, io.micronaut.context.event.ApplicationEventPublisher<LeaseLostEvent> leaseLostEventApplicationEventPublisher, io.micronaut.context.event.ApplicationEventPublisher<LeaseAcquiredEvent> leaseAcquiredEventApplicationEventPublisher)
  • Method Details

    • build

      @NonNull public @NonNull io.kubernetes.client.extended.controller.LeaderElectingController build(@NonNull @NonNull ControllerConfiguration operator, @NonNull @NonNull ResourceReconciler<?> resourceReconciler, @NonNull @NonNull io.kubernetes.client.extended.controller.ControllerManager controllerManager)
      Description copied from interface: LeaderElectingControllerBuilder
      Builds the LeaderElectingController.
      Specified by:
      build in interface LeaderElectingControllerBuilder
      Parameters:
      operator - the operator configuration
      resourceReconciler - the operator's reconciler
      controllerManager - the controller manager
      Returns:
      leader electing controller