java.lang.Object
io.kubernetes.client.extended.leaderelection.resourcelock.ConfigMapLock
All Implemented Interfaces:
Lock

public class ConfigMapLock extends Object implements Lock
  • Constructor Details

    • ConfigMapLock

      public ConfigMapLock(String namespace, String name, String identity)
    • ConfigMapLock

      public ConfigMapLock(String namespace, String name, String identity, io.kubernetes.client.openapi.ApiClient apiClient)
  • Method Details

    • get

      public LeaderElectionRecord get() throws io.kubernetes.client.openapi.ApiException
      Description copied from interface: Lock
      get returns the LeaderElectionRecord which contains the information about the current lock holder
      Specified by:
      get in interface Lock
      Returns:
      the Leader election record
      Throws:
      io.kubernetes.client.openapi.ApiException
    • create

      public boolean create(LeaderElectionRecord record)
      Description copied from interface: Lock
      create attempts to create a LeaderElectionRecord
      Specified by:
      create in interface Lock
      Parameters:
      record - the information of this candidate
      Returns:
      the result is successful or not
    • update

      public boolean update(LeaderElectionRecord record)
      Description copied from interface: Lock
      update attempts to update the existing LeaderElectionRecord
      Specified by:
      update in interface Lock
      Parameters:
      record - the information of this candidate
      Returns:
      the result is successful or not
    • identity

      public String identity()
      Description copied from interface: Lock
      identity returns the locks Identity
      Specified by:
      identity in interface Lock
      Returns:
      the identity
    • describe

      public String describe()
      Description copied from interface: Lock
      Describe is used to convert details on current resource lock into a string
      Specified by:
      describe in interface Lock
      Returns:
      the description