APICronJobLock class
The lock of an APICronJob: only its owner runs the job until leaseUntil (renewed while running). Unique by job.
Constructors
- APICronJobLock(String job, String owner, DateTime leaseUntil, {DateTime? acquiredAt})
- APICronJobLock.empty()
Properties
- acquiredAt ↔ DateTime?
-
getter/setter pair
-
annotations
→ Map<
String, List< EntityAnnotation> > -
no setter
-
fieldsNames
→ List<
String> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
getter/setter pairinherited
- idFieldName → String
-
no setterinherited
- job ↔ String
-
getter/setter pair
- leaseUntil ↔ DateTime
-
getter/setter pair
- owner ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ Map<
String, TypeInfo> -
no setter
Methods
-
copy(
) → APICronJobLock - A copy of this lock (its fields).
-
getField<
V> (String key) → V? -
inherited
-
getFieldEntityAnnotations(
String key) → List< EntityAnnotation> ? -
inherited
-
getFieldType(
String key) → TypeInfo? -
inherited
-
getID<
V> () → V? -
inherited
-
isExpired(
DateTime now) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setField<
V> (String key, V? value) → void -
inherited
-
setID<
V> (V id) → void -
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toJsonEncoded(
) → String -
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited