Class BridgeEvent
java.lang.Object
io.vertx.mutiny.core.Promise<Boolean>
io.vertx.mutiny.ext.bridge.BaseBridgeEvent
io.vertx.mutiny.ext.eventbus.bridge.tcp.BridgeEvent
- All Implemented Interfaces:
MutinyDelegate
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
ConstructorsConstructorDescriptionBridgeEvent(io.vertx.ext.eventbus.bridge.tcp.BridgeEvent delegate) BridgeEvent(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.eventbus.bridge.tcp.BridgeEventinthashCode()static BridgeEventnewInstance(io.vertx.ext.eventbus.bridge.tcp.BridgeEvent arg) setRawMessage(io.vertx.core.json.JsonObject message) socket()toString()booleantryComplete(Boolean arg0) Methods inherited from class io.vertx.mutiny.ext.bridge.BaseBridgeEvent
getRawMessage, newInstance, typeMethods inherited from class io.vertx.mutiny.core.Promise
complete, fail, fail, newInstance, newInstance, promise, tryComplete, tryFail, tryFail
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
BridgeEvent
public BridgeEvent(io.vertx.ext.eventbus.bridge.tcp.BridgeEvent delegate) -
BridgeEvent
-
-
Method Details
-
getDelegate
public io.vertx.ext.eventbus.bridge.tcp.BridgeEvent getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classBaseBridgeEvent- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toStringin classBaseBridgeEvent
-
equals
- Overrides:
equalsin classBaseBridgeEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseBridgeEvent
-
complete
- Overrides:
completein classBaseBridgeEvent- Parameters:
result- the result
-
tryComplete
- Overrides:
tryCompletein classBaseBridgeEvent- 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.- Overrides:
futurein classBaseBridgeEvent- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
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 classBaseBridgeEvent- 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 classBaseBridgeEvent
-
setRawMessage
- Overrides:
setRawMessagein classBaseBridgeEvent- Parameters:
message- the raw message- Returns:
- this reference, so it can be used fluently
-
socket
- Returns:
- the SockJSSocket instance
-
newInstance
-