V1LeaseSpec class

Annotations
  • @JsonSerializable(checked: true, createToJson: true, disallowUnrecognizedKeys: false, explicitToJson: true)

Constructors

V1LeaseSpec({DateTime? acquireTime, String? holderIdentity, int? leaseDurationSeconds, int? leaseTransitions, DateTime? renewTime})
Returns a new V1LeaseSpec instance.
V1LeaseSpec.fromJson(Map<String, dynamic> json)
factory

Properties

acquireTime DateTime?
acquireTime is a time when the current lease was acquired.
final
hashCode int
The hash code for this object.
no setteroverride
holderIdentity String?
holderIdentity contains the identity of the holder of a current lease.
final
leaseDurationSeconds int?
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
final
leaseTransitions int?
leaseTransitions is the number of transitions of a lease between holders.
final
renewTime DateTime?
renewTime is a time when the current holder of a lease has last updated the lease.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override