Represents an event that occurs on the event bus bridge.
Please consult the documentation for a full explanation.
AnythingObjectBasic ...and other supertypesFutureBridgeEventFutureBasicIdentifiableObjectAnythingno subtypes hierarchy
| Initializer |
BridgeEvent(BridgeEvent unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
complete | shared actual default void complete(Boolean arg0) |
completer | shared actual default Anything(Throwable|Boolean) completer()Refines Future.completer |
compose | shared actual default Future<U?> compose<U>(Future<U?>(Boolean) mapper)Compose this future with a When this future (the one on which If the When this future fails, the failure will be propagated to the returned future and the Refines Future.compose |
compose | shared actual default Future<U?> compose<U>(Anything(Boolean) handler, Future<U?> next)Compose this future with a provided When this (the one on which If the When this future fails, the failure will be propagated to the Refines Future.compose |
getRawMessage | shared default Object getRawMessage()Get the raw JSON message for the event. This will be null for SOCKET_CREATED or SOCKET_CLOSED events as there is no message involved. If the returned message is modified, setRawMessage should be called with the new message. |
map | shared actual default Future<U?> map<U>(U?(Boolean) mapper)Apply a When this future succeeds, the If the When this future fails, the failure will be propagated to the returned future and the Refines Future.map |
otherwise | shared actual default Future<Boolean> otherwise(Boolean value) |
otherwise | shared actual default Future<Boolean> otherwise(Boolean(Throwable) mapper)Apply a When this future fails, the If the When this future succeeds, the result will be propagated to the returned future and the Refines Future.otherwise |
otherwiseEmpty | shared actual default Future<Boolean> otherwiseEmpty()Map the failure of a future to This is a convenience for When this future fails, the When this future succeeds, the result will be propagated to the returned future. Refines Future.otherwiseEmpty |
recover | shared actual default Future<Boolean> recover(Future<Boolean>(Throwable) mapper)Handles a failure of this Future by returning the result of another Future. If the mapper fails, then the returned future will be failed with this failure. Refines Future.recover |
result | shared actual default Boolean result()The result of the operation. This will be null if the operation failed. Refines Future.result |
setHandler | shared actual default Future<Boolean> setHandler(Anything(Throwable|Boolean) arg0)Set a handler for the result. If the future has already been completed it will be called immediately. Otherwise it will be called when the future is completed. Refines Future.setHandler |
setRawMessage | shared default BridgeEvent setRawMessage(Object message)Get the raw JSON message for the event. This will be null for SOCKET_CREATED or SOCKET_CLOSED events as there is no message involved. Parameters:
|
socket | shared default SockJSSocket socket()Get the SockJSSocket instance corresponding to the event |
tryComplete | shared actual default Boolean tryComplete(Boolean arg0) |
type | shared default BridgeEventType type() |
| Inherited Methods |
Methods inherited from: Future<T>cause, complete, completer, compose, fail, failed, isComplete, map, mapEmpty, otherwise, otherwiseEmpty, recover, result, setHandler, succeeded, tryComplete, tryFail |
Methods inherited from: Objectequals |