Class LeaseLock
- java.lang.Object
-
- io.fabric8.kubernetes.client.extended.leaderelection.resourcelock.ResourceLock<io.fabric8.kubernetes.api.model.coordination.v1.Lease>
-
- io.fabric8.kubernetes.client.extended.leaderelection.resourcelock.LeaseLock
-
- All Implemented Interfaces:
Lock
public class LeaseLock extends ResourceLock<io.fabric8.kubernetes.api.model.coordination.v1.Lease>
-
-
Field Summary
-
Fields inherited from interface io.fabric8.kubernetes.client.extended.leaderelection.resourcelock.Lock
LEADER_ELECTION_RECORD_ANNOTATION_KEY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<io.fabric8.kubernetes.api.model.coordination.v1.Lease>getKind()protected LeaderElectionRecordtoRecord(io.fabric8.kubernetes.api.model.coordination.v1.Lease resource)protected io.fabric8.kubernetes.api.model.coordination.v1.LeasetoResource(LeaderElectionRecord leaderElectionRecord, io.fabric8.kubernetes.api.model.ObjectMetaBuilder meta)Convert the record to a resource-
Methods inherited from class io.fabric8.kubernetes.client.extended.leaderelection.resourcelock.ResourceLock
create, describe, get, getObjectMeta, identity, update
-
-
-
-
Method Detail
-
getKind
protected Class<io.fabric8.kubernetes.api.model.coordination.v1.Lease> getKind()
- Specified by:
getKindin classResourceLock<io.fabric8.kubernetes.api.model.coordination.v1.Lease>
-
toResource
protected io.fabric8.kubernetes.api.model.coordination.v1.Lease toResource(LeaderElectionRecord leaderElectionRecord, io.fabric8.kubernetes.api.model.ObjectMetaBuilder meta)
Description copied from class:ResourceLockConvert the record to a resource- Specified by:
toResourcein classResourceLock<io.fabric8.kubernetes.api.model.coordination.v1.Lease>meta- not null- Returns:
-
toRecord
protected LeaderElectionRecord toRecord(io.fabric8.kubernetes.api.model.coordination.v1.Lease resource)
- Specified by:
toRecordin classResourceLock<io.fabric8.kubernetes.api.model.coordination.v1.Lease>
-
-