Interface LeaderElectionConfiguration
- All Known Implementing Classes:
LeaderElectionConfigurationProperties
public interface LeaderElectionConfiguration
The
LeaderElectionConfig
configuration.- Since:
- 3.3
- Author:
- Pavol Gressa
-
Method Details
-
getLeaseDuration
The lock lease duration. SeeLeaderElector
.- Returns:
- lease duration
-
getRenewDeadline
The lock renew deadline. If theLeaderElector
fails to renew the lock within the deadline then the controller looses the lock.- Returns:
- renew deadline
-
getRetryPeriod
The lock acquire retry period. SeeLeaderElector
.- Returns:
- lock acquire retry period.
-
getResourceName
The lock resource name. If not provided then the application name is used.- Returns:
- the lock resource name
-
getResourceNamespace
The lock resource namespace. If not provided then the application namespaces is used.- Returns:
- the lock resource namespace
-