RevokeEntry class
Represents a persisted revoke entry for a task.
Constructors
- RevokeEntry({required String namespace, required String taskId, required int version, required DateTime issuedAt, bool terminate = false, String? reason, String? requestedBy, DateTime? expiresAt})
-
Creates a revoke entry snapshot.
const
-
RevokeEntry.fromJson(Map<
String, Object?> json) -
Creates a RevokeEntry from a JSON map.
factory
Properties
- expiresAt → DateTime?
-
Optional expiration for the revoke.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- issuedAt → DateTime
-
When the revoke was issued.
final
- namespace → String
-
Logical namespace the revoke applies to.
final
- reason → String?
-
Optional human-readable reason.
final
- requestedBy → String?
-
Optional identifier for the requester.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- taskId → String
-
Identifier of the task to revoke.
final
- terminate → bool
-
Whether the task should be forcefully terminated if running.
final
- version → int
-
Monotonic version used to order revoke updates.
final
Methods
-
copyWith(
{String? namespace, String? taskId, int? version, DateTime? issuedAt, bool? terminate, String? reason, String? requestedBy, DateTime? expiresAt}) → RevokeEntry - Returns a copy of this entry with the provided overrides.
-
isExpired(
DateTime clock) → bool -
Returns
truewhen the revoke has an expiry and is past due. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Serialises this entry to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited