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

com.github.sseserver.qos.QosCompletableFuture Maven / Gradle / Ivy

package com.github.sseserver.qos;

import com.github.sseserver.util.CompletableFuture;

import java.util.Objects;

public class QosCompletableFuture extends CompletableFuture {
    /**
     * 消息ID
     * {@link Message#newId(String, String)}}
     */
    private final String messageId;

    public QosCompletableFuture(String messageId) {
        this.messageId = Objects.requireNonNull(messageId);
        setExceptionallyPrefix("at qos messageId :" + messageId);
    }

    public String getMessageId() {
        return messageId;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy