Package io.vertx.mutiny.ext.bridge
Class BaseBridgeEvent
- All Implemented Interfaces:
MutinyDelegate
- Direct Known Subclasses:
BridgeEvent,BridgeEvent
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
FieldsFields inherited from class io.vertx.mutiny.core.Promise
__typeArg_0 -
Constructor Summary
ConstructorsConstructorDescriptionBaseBridgeEvent(io.vertx.ext.bridge.BaseBridgeEvent delegate) BaseBridgeEvent(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanio.smallrye.mutiny.Uni<Boolean>future()Unlike the bare Vert.x variant, this method returns aUni.Blocking variant ofPromise.future().voidVariant ofPromise.future()that ignores the result of the operation.io.vertx.ext.bridge.BaseBridgeEventio.vertx.core.json.JsonObjectinthashCode()static BaseBridgeEventnewInstance(io.vertx.ext.bridge.BaseBridgeEvent arg) setRawMessage(io.vertx.core.json.JsonObject message) toString()booleantryComplete(Boolean arg0) io.vertx.ext.bridge.BridgeEventTypetype()Methods inherited from class io.vertx.mutiny.core.Promise
complete, fail, fail, newInstance, newInstance, promise, tryComplete, tryFail, tryFail
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
BaseBridgeEvent
public BaseBridgeEvent(io.vertx.ext.bridge.BaseBridgeEvent delegate) -
BaseBridgeEvent
-
-
Method Details
-
getDelegate
public io.vertx.ext.bridge.BaseBridgeEvent getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classPromise<Boolean>- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
complete
-
tryComplete
- Overrides:
tryCompletein classPromise<Boolean>- Parameters:
arg0- the result- Returns:
falsewhen the future is already completed
-
future
Description copied from class:PromiseUnlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation. -
futureAndAwait
Description copied from class:PromiseBlocking 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:
futureAndAwaitin classPromise<Boolean>- Returns:
- the T instance produced by the operation.
-
futureAndForget
public void futureAndForget()Description copied from class:PromiseVariant 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:
futureAndForgetin classPromise<Boolean>
-
type
public io.vertx.ext.bridge.BridgeEventType type()- Returns:
- the type of the event
-
getRawMessage
public io.vertx.core.json.JsonObject getRawMessage()- Returns:
- the raw JSON message for the event
-
setRawMessage
- Parameters:
message- the raw message- Returns:
- this reference, so it can be used fluently
-
newInstance
-