Class ConnectionInitEvent
- java.lang.Object
-
- io.vertx.reactivex.core.Promise<Object>
-
- io.vertx.reactivex.ext.web.handler.graphql.ws.ConnectionInitEvent
-
- All Implemented Interfaces:
RxDelegate
public class ConnectionInitEvent extends io.vertx.reactivex.core.Promise<Object> implements RxDelegate
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ConnectionInitEvent>__TYPE_ARG
-
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 voidcomplete(Object result)Set the result.voidcomplete(Object result, Throwable failure)booleanequals(Object o)Future<Object>future()ConnectionInitEventgetDelegate()voidhandle(AsyncResult<Object> asyncResult)Succeed or fail this promise with the event.inthashCode()Messagemessage()Provides message content.static ConnectionInitEventnewInstance(ConnectionInitEvent arg)io.reactivex.Single<Object>rxFuture()voidsucceed(Object result)StringtoString()booleantryComplete(Object result)LikePromise.complete(T, java.lang.Throwable)but returnsfalsewhen the promise is already completed instead of throwing anIllegalStateException, it returnstrueotherwise.
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ConnectionInitEvent> __TYPE_ARG
-
-
Constructor Detail
-
ConnectionInitEvent
public ConnectionInitEvent(ConnectionInitEvent delegate)
-
ConnectionInitEvent
public ConnectionInitEvent(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classio.vertx.reactivex.core.Promise<Object>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classio.vertx.reactivex.core.Promise<Object>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classio.vertx.reactivex.core.Promise<Object>
-
getDelegate
public ConnectionInitEvent getDelegate()
- Specified by:
getDelegatein interfaceRxDelegate- Overrides:
getDelegatein classio.vertx.reactivex.core.Promise<Object>
-
complete
public void complete(Object result, Throwable failure)
- Overrides:
completein classio.vertx.reactivex.core.Promise<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.- Overrides:
completein classio.vertx.reactivex.core.Promise<Object>- Parameters:
result- the result
-
succeed
public void succeed(Object result)
- Overrides:
succeedin classio.vertx.reactivex.core.Promise<Object>
-
tryComplete
public boolean tryComplete(Object result)
LikePromise.complete(T, java.lang.Throwable)but returnsfalsewhen the promise is already completed instead of throwing anIllegalStateException, it returnstrueotherwise.- Overrides:
tryCompletein classio.vertx.reactivex.core.Promise<Object>- Parameters:
result- the result- Returns:
falsewhen the future is already completed
-
future
public Future<Object> future()
- Overrides:
futurein classio.vertx.reactivex.core.Promise<Object>- Returns:
- the associated with this promise, it can be used to be aware of the promise completion
-
rxFuture
public io.reactivex.Single<Object> rxFuture()
- Overrides:
rxFuturein classio.vertx.reactivex.core.Promise<Object>- Returns:
- the associated with this promise, it can be used to be aware of the promise completion
-
message
public Message message()
Provides message content.- Returns:
- message
-
handle
public void handle(AsyncResult<Object> asyncResult)
Succeed or fail this promise with the event.- Overrides:
handlein classio.vertx.reactivex.core.Promise<Object>- Parameters:
asyncResult- the async result to handle
-
newInstance
public static ConnectionInitEvent newInstance(ConnectionInitEvent arg)
-
-