com.github.sseserver.qos.QosCompletableFuture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sse-server Show documentation
Show all versions of sse-server Show documentation
Sse server for Spring Boot
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;
}
}