Interface LeaderElectionConfiguration

All Known Implementing Classes:
LeaderElectionConfigurationProperties

public interface LeaderElectionConfiguration
The LeaderElectionConfig configuration.
Since:
3.3
Author:
Pavol Gressa
  • Method Details

    • getLeaseDuration

      @NonNull @NonNull Duration getLeaseDuration()
      The lock lease duration. See LeaderElector.
      Returns:
      lease duration
    • getRenewDeadline

      @NonNull @NonNull Duration getRenewDeadline()
      The lock renew deadline. If the LeaderElector fails to renew the lock within the deadline then the controller looses the lock.
      Returns:
      renew deadline
    • getRetryPeriod

      @NonNull @NonNull Duration getRetryPeriod()
      The lock acquire retry period. See LeaderElector.
      Returns:
      lock acquire retry period.
    • getResourceName

      @NonNull @NonNull Optional<String> getResourceName()
      The lock resource name. If not provided then the application name is used.
      Returns:
      the lock resource name
    • getResourceNamespace

      @NonNull @NonNull Optional<String> getResourceNamespace()
      The lock resource namespace. If not provided then the application namespaces is used.
      Returns:
      the lock resource namespace