org.enodeframework.commanding.ProcessingCommand.kt Maven / Gradle / Ivy
package org.enodeframework.commanding
import java.util.concurrent.CompletableFuture
/**
* @author [email protected]
*/
class ProcessingCommand(
val message: CommandMessage,
val commandExecuteContext: CommandExecuteContext,
val items: MutableMap
) {
lateinit var mailBox: ProcessingCommandMailbox
var sequence: Long = 0
var isDuplicated = false
fun completeAsync(commandResult: CommandResult): CompletableFuture {
return commandExecuteContext.onCommandExecutedAsync(commandResult)
}
}