Class ConnectionInitEvent
- java.lang.Object
-
- io.vertx.rxjava3.core.Promise<Object>
-
- io.vertx.rxjava3.ext.web.handler.graphql.ws.ConnectionInitEvent
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<ConnectionInitEvent>
__TYPE_ARG
-
Fields inherited from class io.vertx.rxjava3.core.Promise
__typeArg_0
-
-
Constructor Summary
Constructors Constructor Description ConnectionInitEvent(ConnectionInitEvent delegate)
ConnectionInitEvent(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complete(Object result)
Set the result.void
complete(Object result, Throwable failure)
boolean
equals(Object o)
Single<Object>
future()
ConnectionInitEvent
getDelegate()
void
handle(AsyncResult<Object> asyncResult)
Succeed or fail this promise with the event.int
hashCode()
Message
message()
Provides message content.static ConnectionInitEvent
newInstance(ConnectionInitEvent arg)
Single<Object>
rxFuture()
void
succeed(Object result)
String
toString()
boolean
tryComplete(Object result)
LikePromise.complete(T, java.lang.Throwable)
but returnsfalse
when the promise is already completed instead of throwing anIllegalStateException
, it returnstrue
otherwise.-
Methods inherited from class io.vertx.rxjava3.core.Promise
complete, fail, fail, newInstance, newInstance, promise, succeed, tryComplete, tryFail, tryFail
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<ConnectionInitEvent> __TYPE_ARG
-
-
Constructor Detail
-
ConnectionInitEvent
public ConnectionInitEvent(ConnectionInitEvent delegate)
-
ConnectionInitEvent
public ConnectionInitEvent(Object delegate)
-
-
Method Detail
-
getDelegate
public ConnectionInitEvent getDelegate()
- Overrides:
getDelegate
in classPromise<Object>
-
complete
public void complete(Object result)
Set the result. Any handler will be called, if there is one, and the promise will be marked as completed. Any handler set on the associated promise will be called.
-
tryComplete
public boolean tryComplete(Object result)
LikePromise.complete(T, java.lang.Throwable)
but returnsfalse
when the promise is already completed instead of throwing anIllegalStateException
, it returnstrue
otherwise.- Overrides:
tryComplete
in classPromise<Object>
- Parameters:
result
- the result- Returns:
false
when the future is already completed
-
message
public Message message()
Provides message content.- Returns:
- message
-
handle
public void handle(AsyncResult<Object> asyncResult)
Succeed or fail this promise with the event.
-
newInstance
public static ConnectionInitEvent newInstance(ConnectionInitEvent arg)
-
-