public interface Lock
Modifier and Type | Method and Description |
---|---|
boolean |
create(LeaderElectionRecord record)
create attempts to create a LeaderElectionRecord
|
String |
describe()
Describe is used to convert details on current resource lock into a string
|
LeaderElectionRecord |
get()
get returns the LeaderElectionRecord which contains the information about the current lock
holder
|
String |
identity()
identity returns the locks Identity
|
boolean |
update(LeaderElectionRecord record)
update attempts to update the existing LeaderElectionRecord
|
LeaderElectionRecord get() throws io.kubernetes.client.openapi.ApiException
io.kubernetes.client.openapi.ApiException
boolean create(LeaderElectionRecord record)
record
- the information of this candidateboolean update(LeaderElectionRecord record)
record
- the information of this candidateString identity()
String describe()
Copyright © 2021. All rights reserved.