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;
}
}