TransferRecord class final
Durable mutable state stored for one transfer task.
Constructors
-
TransferRecord({required String id, required TransferRequest request, TransferState state = TransferState.created, int bytesTransferred = 0, int? totalBytes, int retryAttempts = 0, String? nativeTaskId, Map<
String, Object?> ? protocolMetadata, DateTime? createdAt, DateTime? updatedAt, Object? error}) - Creates a persisted task record.
Properties
- bytesTransferred ↔ int
-
Number of bytes acknowledged so far.
getter/setter pair
- createdAt → DateTime
-
UTC creation time.
final
- error ↔ Object?
-
Most recent failure, if any.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable task identifier.
final
- nativeTaskId ↔ String?
-
Identifier assigned by a native background scheduler.
getter/setter pair
-
protocolMetadata
→ Map<
String, Object?> -
Protocol-specific durable session data.
final
- request → TransferRequest
-
Immutable transfer request.
final
- retryAttempts ↔ int
-
Number of retry attempts already scheduled.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ TransferState
-
Current lifecycle state.
getter/setter pair
- totalBytes ↔ int?
-
Expected total bytes, when known.
getter/setter pair
- updatedAt ↔ DateTime
-
UTC time of the latest record update.
getter/setter pair
Methods
-
copy(
) → TransferRecord - Creates an independent snapshot of this record.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited