ForwardReply

data class ForwardReply(val format: Int = FORMAT, val result: CommandResult? = null, val reached: List<CommandResult> = emptyList(), val refused: String? = null)

The owner's reply to a ForwardCommand: the result its execution reached at COMMITTED (a commit, a duplicate, no change, a rejection or a failure), followed by the later hops it reached at once (the next HANDLED hop of a command that changed nothing, or of a duplicate whose subscription is past it). Hops reached later are signalled to the wait's origin.

A node that does not take the command answers refused instead, with one of the Refusal codes; the sender then executes the command itself. A reply of a format the sender does not read, or with a result of one, leaves the forward's outcome unknown to it (ClusterCodec.decodeReply): the owner may have run the command.

Constructors

Link copied to clipboard
constructor(format: Int = FORMAT, result: CommandResult? = null, reached: List<CommandResult> = emptyList(), refused: String? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard
val format: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard