org.enodeframework.commanding.ProcessingCommand.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enode Show documentation
Show all versions of enode Show documentation
The enodeframework core implementation.
package org.enodeframework.commanding
import java.util.concurrent.CompletableFuture
/**
* @author [email protected]
*/
class ProcessingCommand(val message: ICommand, val commandExecuteContext: ICommandExecuteContext, items: MutableMap) {
val items: MutableMap
lateinit var mailBox: ProcessingCommandMailbox
var sequence: Long = 0
var isDuplicated = false
fun completeAsync(commandResult: CommandResult): CompletableFuture {
return commandExecuteContext.onCommandExecutedAsync(commandResult)
}
init {
this.items = items
}
}