QueuedMutation

class QueuedMutation<B : Any>(val id: String, val key: MutationKey, val endpoint: NetworkEndpoint, val body: B?, val bodyType: TypeInfo?)

The live, in-process description of one enqueued mutation: which endpoint to call and what body to send. This is what MutationQueue actually executes via io.github.maniramezan.kenwork.network.ApiClient.request.

It is deliberately not a suspend lambda. A closure can't be written to disk and reconstructed after process death, so it can't back a durable MutationStore. An endpoint + body pair can — see MutationCodec for how to make one round-trip through persistence.

Constructors

Link copied to clipboard
constructor(id: String, key: MutationKey, endpoint: NetworkEndpoint, body: B?, bodyType: TypeInfo?)

Properties

Link copied to clipboard
val body: B?
Link copied to clipboard
val bodyType: TypeInfo?
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard