Package io.vertx.ext.eventbus.bridge.tcp
Interface BridgeEvent
-
- All Superinterfaces:
BaseBridgeEvent
,Completable<Boolean>
,Promise<Boolean>
public interface BridgeEvent extends BaseBridgeEvent
Represents an event that occurs on the event bus bridge.Please consult the documentation for a full explanation.
- Author:
- Tim Fox
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BridgeEvent
setRawMessage(JsonObject message)
Get the raw JSON message for the event.NetSocket
socket()
Get the SockJSSocket instance corresponding to the event-
Methods inherited from interface io.vertx.ext.bridge.BaseBridgeEvent
getRawMessage, type
-
-
-
-
Method Detail
-
setRawMessage
BridgeEvent setRawMessage(JsonObject 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.- Specified by:
setRawMessage
in interfaceBaseBridgeEvent
- Parameters:
message
- the raw message- Returns:
- this reference, so it can be used fluently
-
socket
NetSocket socket()
Get the SockJSSocket instance corresponding to the event- Returns:
- the SockJSSocket instance
-
-