io.vertx.mutiny.ext.web.handler.graphql.ApolloWSMessage Maven / Gradle / Ivy
package io.vertx.mutiny.ext.web.handler.graphql;
import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import io.smallrye.common.annotation.CheckReturnValue;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.handler.graphql.ApolloWSMessageType;
/**
* A message received over Apollo's subscriptions-transport-ws
transport.
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.handler.graphql.ApolloWSMessage original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.handler.graphql.ApolloWSMessage.class)
public class ApolloWSMessage {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new ApolloWSMessage((io.vertx.ext.web.handler.graphql.ApolloWSMessage) obj),
ApolloWSMessage::getDelegate
);
private final io.vertx.ext.web.handler.graphql.ApolloWSMessage delegate;
public ApolloWSMessage(io.vertx.ext.web.handler.graphql.ApolloWSMessage delegate) {
this.delegate = delegate;
}
public ApolloWSMessage(Object delegate) {
this.delegate = (io.vertx.ext.web.handler.graphql.ApolloWSMessage)delegate;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
ApolloWSMessage() {
this.delegate = null;
}
public io.vertx.ext.web.handler.graphql.ApolloWSMessage getDelegate() {
return delegate;
}
@Override
public String toString() {
return delegate.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ApolloWSMessage that = (ApolloWSMessage) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
/**
* @return the websocket that received the message
* @deprecated */
@Deprecated
public io.vertx.mutiny.core.http.ServerWebSocket serverWebSocket() {
io.vertx.mutiny.core.http.ServerWebSocket ret = io.vertx.mutiny.core.http.ServerWebSocket.newInstance((io.vertx.core.http.ServerWebSocket)delegate.serverWebSocket());
return ret;
}
/**
* @return the message type
* @deprecated */
@Deprecated
public io.vertx.ext.web.handler.graphql.ApolloWSMessageType type() {
io.vertx.ext.web.handler.graphql.ApolloWSMessageType ret = delegate.type();
return ret;
}
/**
* @return the message content
* @deprecated */
@Deprecated
public JsonObject content() {
JsonObject ret = delegate.content();
return ret;
}
/**
* @return the connection params
* @deprecated */
@Deprecated
public java.lang.Object connectionParams() {
java.lang.Object ret = (Object) delegate.connectionParams();
return ret;
}
public static ApolloWSMessage newInstance(io.vertx.ext.web.handler.graphql.ApolloWSMessage arg) {
return arg != null ? new ApolloWSMessage(arg) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy