org.enodeframework.queue.SendReplyService.kt Maven / Gradle / Ivy
package org.enodeframework.queue
import org.enodeframework.commanding.CommandResult
import org.enodeframework.queue.domainevent.DomainEventHandledMessage
import java.util.concurrent.CompletableFuture
interface SendReplyService {
/**
* Send command handle result
*/
fun sendCommandReply(commandResult: CommandResult, address: String): CompletableFuture
/**
* Send event handle result
*/
fun sendEventReply(eventHandledMessage: DomainEventHandledMessage, address: String): CompletableFuture
}