Class LeaseCandidateSpec

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<LeaseCandidateSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class LeaseCandidateSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<LeaseCandidateSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    LeaseCandidateSpec is a specification of a Lease.
    See Also:
    Serialized Form
    • Constructor Detail

      • LeaseCandidateSpec

        public LeaseCandidateSpec()
        No args constructor for use in serialization
      • LeaseCandidateSpec

        public LeaseCandidateSpec​(String binaryVersion,
                                  String emulationVersion,
                                  String leaseName,
                                  io.fabric8.kubernetes.api.model.MicroTime pingTime,
                                  io.fabric8.kubernetes.api.model.MicroTime renewTime,
                                  String strategy)
    • Method Detail

      • getBinaryVersion

        public String getBinaryVersion()
        BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
      • setBinaryVersion

        public void setBinaryVersion​(String binaryVersion)
        BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
      • getEmulationVersion

        public String getEmulationVersion()
        EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
      • setEmulationVersion

        public void setEmulationVersion​(String emulationVersion)
        EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
      • getLeaseName

        public String getLeaseName()
        LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
      • setLeaseName

        public void setLeaseName​(String leaseName)
        LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
      • getPingTime

        public io.fabric8.kubernetes.api.model.MicroTime getPingTime()
        LeaseCandidateSpec is a specification of a Lease.
      • setPingTime

        public void setPingTime​(io.fabric8.kubernetes.api.model.MicroTime pingTime)
        LeaseCandidateSpec is a specification of a Lease.
      • getRenewTime

        public io.fabric8.kubernetes.api.model.MicroTime getRenewTime()
        LeaseCandidateSpec is a specification of a Lease.
      • setRenewTime

        public void setRenewTime​(io.fabric8.kubernetes.api.model.MicroTime renewTime)
        LeaseCandidateSpec is a specification of a Lease.
      • getStrategy

        public String getStrategy()
        Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
      • setStrategy

        public void setStrategy​(String strategy)
        Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)