All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.enodeframework.messaging.impl.DefaultMessageProcessContext.kt Maven / Gradle / Ivy

package org.enodeframework.messaging.impl

import org.enodeframework.common.io.Task
import org.enodeframework.eventing.EventProcessContext
import org.enodeframework.queue.MessageContext
import org.enodeframework.queue.QueueMessage
import java.util.concurrent.CompletableFuture

/**
 * @author [email protected]
 */
class DefaultMessageProcessContext(
    protected val queueMessage: QueueMessage,
    protected val messageContext: MessageContext
) : EventProcessContext {
    override fun notifyEventProcessed(): CompletableFuture {
        messageContext.onMessageHandled(queueMessage)
        return Task.completedTask
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy