Class BridgeEvent
- java.lang.Object
- 
- io.vertx.reactivex.core.Promise<Boolean>
- 
- io.vertx.reactivex.ext.bridge.BaseBridgeEvent
- 
- io.vertx.reactivex.ext.web.handler.sockjs.BridgeEvent
 
 
 
- 
- All Implemented Interfaces:
- io.vertx.lang.rx.RxDelegate
 
 public class BridgeEvent extends BaseBridgeEvent implements io.vertx.lang.rx.RxDelegate Represents an event that occurs on the event bus bridge.Please consult the documentation for a full explanation. NOTE: This class has been automatically generated from the originalnon RX-ified interface using Vert.x codegen.
- 
- 
Field SummaryFields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<BridgeEvent>__TYPE_ARG- 
Fields inherited from class io.vertx.reactivex.core.Promise__typeArg_0
 
- 
 - 
Constructor SummaryConstructors Constructor Description BridgeEvent(BridgeEvent delegate)BridgeEvent(Object delegate)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete(Boolean result)Set the result.voidcomplete(Boolean result, Throwable failure)booleanequals(Object o)Future<Boolean>future()BridgeEventgetDelegate()voidhandle(AsyncResult<Boolean> asyncResult)Succeed or fail this promise with the event.inthashCode()static BridgeEventnewInstance(BridgeEvent arg)Single<Boolean>rxFuture()BridgeEventsetRawMessage(JsonObject message)Set the raw JSON message for the event.SockJSSocketsocket()Get the SockJSSocket instance corresponding to the eventvoidsucceed(Boolean result)StringtoString()booleantryComplete(Boolean result)LikePromise.complete(T, java.lang.Throwable)but returnsfalsewhen the promise is already completed instead of throwing anIllegalStateException, it returnstrueotherwise.- 
Methods inherited from class io.vertx.reactivex.ext.bridge.BaseBridgeEventgetRawMessage, newInstance, type
 - 
Methods inherited from class io.vertx.reactivex.core.Promisecomplete, fail, fail, newInstance, newInstance, promise, succeed, tryComplete, tryFail, tryFail
 
- 
 
- 
- 
- 
Field Detail- 
__TYPE_ARGpublic static final io.vertx.lang.rx.TypeArg<BridgeEvent> __TYPE_ARG 
 
- 
 - 
Constructor Detail- 
BridgeEventpublic BridgeEvent(BridgeEvent delegate) 
 - 
BridgeEventpublic BridgeEvent(Object delegate) 
 
- 
 - 
Method Detail- 
toStringpublic String toString() - Overrides:
- toStringin class- BaseBridgeEvent
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- BaseBridgeEvent
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- BaseBridgeEvent
 
 - 
getDelegatepublic BridgeEvent getDelegate() - Specified by:
- getDelegatein interface- io.vertx.lang.rx.RxDelegate
- Overrides:
- getDelegatein class- BaseBridgeEvent
 
 - 
completepublic void complete(Boolean result, Throwable failure) - Overrides:
- completein class- BaseBridgeEvent
 
 - 
completepublic void complete(Boolean 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 class- BaseBridgeEvent
- Parameters:
- result- the result
 
 - 
succeedpublic void succeed(Boolean result) - Overrides:
- succeedin class- BaseBridgeEvent
 
 - 
tryCompletepublic boolean tryComplete(Boolean result) LikePromise.complete(T, java.lang.Throwable)but returnsfalsewhen the promise is already completed instead of throwing anIllegalStateException, it returnstrueotherwise.- Overrides:
- tryCompletein class- BaseBridgeEvent
- Parameters:
- result- the result
- Returns:
- falsewhen the future is already completed
 
 - 
futurepublic Future<Boolean> future() - Overrides:
- futurein class- BaseBridgeEvent
- Returns:
- the associated with this promise, it can be used to be aware of the promise completion
 
 - 
rxFuturepublic Single<Boolean> rxFuture() - Overrides:
- rxFuturein class- BaseBridgeEvent
- Returns:
- the associated with this promise, it can be used to be aware of the promise completion
 
 - 
setRawMessagepublic BridgeEvent setRawMessage(JsonObject message) Set the raw JSON message for the event.- Overrides:
- setRawMessagein class- BaseBridgeEvent
- Parameters:
- message- the raw message
- Returns:
- this reference, so it can be used fluently
 
 - 
socketpublic SockJSSocket socket() Get the SockJSSocket instance corresponding to the event- Returns:
- the SockJSSocket instance
 
 - 
handlepublic void handle(AsyncResult<Boolean> asyncResult) Succeed or fail this promise with the event.- Overrides:
- handlein class- BaseBridgeEvent
- Parameters:
- asyncResult- the async result to handle
 
 - 
newInstancepublic static BridgeEvent newInstance(BridgeEvent arg) 
 
- 
 
-