Class BridgeEvent
- All Implemented Interfaces:
MutinyDelegate
Please consult the documentation for a full explanation.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Tim Fox
- See Also:
-
BridgeEvent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBridgeEvent(io.vertx.ext.web.handler.sockjs.BridgeEvent delegate) Create a new instance ofBridgeEventdelegating to the given (non-null) instance ofBridgeEvent.BridgeEvent(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanio.smallrye.mutiny.Uni<Boolean>future()Unlike the bare Vert.x variant, this method returns aUni.Unlike the bare Vert.x variant, this method returns aBoolean.Unlike the bare Vert.x variant, this method ignores theBooleanresult or any failure.io.vertx.ext.web.handler.sockjs.BridgeEventGet the delegate instance.inthashCode()static BridgeEventnewInstance(io.vertx.ext.web.handler.sockjs.BridgeEvent delegate) Creates a new instance of theBridgeEvent.setRawMessage(io.vertx.core.json.JsonObject message) Set the raw JSON message for the event.socket()Get the SockJSSocket instance corresponding to the eventtoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
BridgeEvent
public BridgeEvent(io.vertx.ext.web.handler.sockjs.BridgeEvent delegate) Create a new instance ofBridgeEventdelegating to the given (non-null) instance ofBridgeEvent. -
BridgeEvent
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.sockjs.BridgeEvent getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
future
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Promise.future()
-
futureAndAwait
Unlike the bare Vert.x variant, this method returns a
Boolean. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
Promise.future()
-
futureAndForget
Unlike the bare Vert.x variant, this method ignores the
Booleanresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Promise.future()
-
setRawMessage
Set the raw JSON message for the event.- Parameters:
message- the raw message- Returns:
- this reference, so it can be used fluently
-
socket
Get the SockJSSocket instance corresponding to the event- Returns:
- the SockJSSocket instance
-
newInstance
Creates a new instance of theBridgeEvent. -
hashCode
public int hashCode() -
equals
-
toString
-