Class BridgeEvent
- java.lang.Object
-
- io.vertx.mutiny.core.Promise<Boolean>
-
- io.vertx.mutiny.ext.bridge.BaseBridgeEvent
-
- io.vertx.mutiny.ext.web.handler.sockjs.BridgeEvent
-
public class BridgeEvent extends BaseBridgeEvent
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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<BridgeEvent>
__TYPE_ARG
-
Fields inherited from class io.vertx.mutiny.core.Promise
__typeArg_0
-
-
Constructor Summary
Constructors Constructor Description BridgeEvent(io.vertx.ext.web.handler.sockjs.BridgeEvent delegate)
BridgeEvent(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complete(Boolean result)
boolean
equals(Object o)
io.smallrye.mutiny.Uni<Boolean>
future()
Unlike the bare Vert.x variant, this method returns aUni
.Boolean
futureAndAwait()
Blocking variant ofPromise.future()
.void
futureAndForget()
Variant ofPromise.future()
that ignores the result of the operation.io.vertx.ext.web.handler.sockjs.BridgeEvent
getDelegate()
int
hashCode()
static BridgeEvent
newInstance(io.vertx.ext.web.handler.sockjs.BridgeEvent arg)
BridgeEvent
setRawMessage(io.vertx.core.json.JsonObject message)
SockJSSocket
socket()
String
toString()
boolean
tryComplete(Boolean arg0)
-
Methods inherited from class io.vertx.mutiny.ext.bridge.BaseBridgeEvent
getRawMessage, newInstance, type
-
Methods inherited from class io.vertx.mutiny.core.Promise
complete, fail, fail, newInstance, newInstance, promise, tryComplete, tryFail, tryFail
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<BridgeEvent> __TYPE_ARG
-
-
Constructor Detail
-
BridgeEvent
public BridgeEvent(io.vertx.ext.web.handler.sockjs.BridgeEvent delegate)
-
BridgeEvent
public BridgeEvent(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.sockjs.BridgeEvent getDelegate()
- Overrides:
getDelegate
in classBaseBridgeEvent
-
toString
public String toString()
- Overrides:
toString
in classBaseBridgeEvent
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classBaseBridgeEvent
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBaseBridgeEvent
-
complete
public void complete(Boolean result)
- Overrides:
complete
in classBaseBridgeEvent
- Parameters:
result
- the result
-
tryComplete
public boolean tryComplete(Boolean arg0)
- Overrides:
tryComplete
in classBaseBridgeEvent
- Parameters:
arg0
- the result- Returns:
false
when the future is already completed
-
future
public io.smallrye.mutiny.Uni<Boolean> future()
Description copied from class:Promise
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Overrides:
future
in classBaseBridgeEvent
- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
futureAndAwait
public Boolean futureAndAwait()
Description copied from class:Promise
Blocking variant ofPromise.future()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Overrides:
futureAndAwait
in classBaseBridgeEvent
- Returns:
- the T instance produced by the operation.
-
futureAndForget
public void futureAndForget()
Description copied from class:Promise
Variant ofPromise.future()
that ignores the result of the operation.This method subscribes on the result of
Promise.future()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromPromise.future()
but you don't need to compose it with other operations.- Overrides:
futureAndForget
in classBaseBridgeEvent
-
setRawMessage
public BridgeEvent setRawMessage(io.vertx.core.json.JsonObject message)
- Overrides:
setRawMessage
in classBaseBridgeEvent
- Parameters:
message
- the raw message- Returns:
- this reference, so it can be used fluently
-
socket
public SockJSSocket socket()
- Returns:
- the SockJSSocket instance
-
newInstance
public static BridgeEvent newInstance(io.vertx.ext.web.handler.sockjs.BridgeEvent arg)
-
-