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

io.vertx.mutiny.ext.web.handler.graphql.ApolloWSConnectionInitEvent Maven / Gradle / Ivy

There is a newer version: 3.17.1
Show newest version
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.Future;

/**
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.handler.graphql.ApolloWSConnectionInitEvent original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.handler.graphql.ApolloWSConnectionInitEvent.class) public class ApolloWSConnectionInitEvent extends io.vertx.mutiny.core.Promise { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new ApolloWSConnectionInitEvent((io.vertx.ext.web.handler.graphql.ApolloWSConnectionInitEvent) obj), ApolloWSConnectionInitEvent::getDelegate ); private final io.vertx.ext.web.handler.graphql.ApolloWSConnectionInitEvent delegate; public ApolloWSConnectionInitEvent(io.vertx.ext.web.handler.graphql.ApolloWSConnectionInitEvent delegate) { super(delegate); this.delegate = delegate; } public ApolloWSConnectionInitEvent(Object delegate) { super((io.vertx.ext.web.handler.graphql.ApolloWSConnectionInitEvent)delegate); this.delegate = (io.vertx.ext.web.handler.graphql.ApolloWSConnectionInitEvent)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ ApolloWSConnectionInitEvent() { super(null); this.delegate = null; } public io.vertx.ext.web.handler.graphql.ApolloWSConnectionInitEvent 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; ApolloWSConnectionInitEvent that = (ApolloWSConnectionInitEvent) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } @Deprecated public void complete(java.lang.Object result) { delegate.complete(result); } @Deprecated public boolean tryComplete(java.lang.Object arg0) { boolean ret = delegate.tryComplete(arg0); return ret; } @CheckReturnValue @Deprecated public io.smallrye.mutiny.Uni future() { return io.smallrye.mutiny.vertx.UniHelper.toUni(delegate.future());} @Deprecated public java.lang.Object futureAndAwait() { return future().await().indefinitely(); } @Deprecated public void futureAndForget() { future().subscribe().with(io.smallrye.mutiny.vertx.UniHelper.NOOP); } /** * @return message * @deprecated */ @Deprecated public io.vertx.mutiny.ext.web.handler.graphql.ApolloWSMessage message() { if (cached_0 != null) { return cached_0; } io.vertx.mutiny.ext.web.handler.graphql.ApolloWSMessage ret = io.vertx.mutiny.ext.web.handler.graphql.ApolloWSMessage.newInstance((io.vertx.ext.web.handler.graphql.ApolloWSMessage)delegate.message()); cached_0 = ret; return ret; } private io.vertx.mutiny.ext.web.handler.graphql.ApolloWSMessage cached_0; public static ApolloWSConnectionInitEvent newInstance(io.vertx.ext.web.handler.graphql.ApolloWSConnectionInitEvent arg) { return arg != null ? new ApolloWSConnectionInitEvent(arg) : null; } }