Represents an event that occurs on the event bus bridge.
Please consult the documentation for a full explanation.
Constructor and description |
---|
BridgeEvent
(java.lang.Object delegate) |
Type | Name and description |
---|---|
java.lang.Object |
getDelegate() |
java.util.Map<java.lang.String, java.lang.Object> |
getRawMessage() Get the raw JSON message for the event. |
java.util.Map<java.lang.String, java.lang.Object> |
rawMessage() Use BridgeEvent.getRawMessage instead, will be removed in 3.3 @return |
BridgeEvent |
setRawMessage(java.util.Map<java.lang.String, java.lang.Object> message) Get the raw JSON message for the event. |
SockJSSocket |
socket() Get the SockJSSocket instance corresponding to the event |
io.vertx.ext.web.handler.sockjs.BridgeEventType |
type() @return
|
Methods inherited from class | Name |
---|---|
class Future |
cause, complete, complete, completer, compose, compose, fail, fail, failed, failedFuture, future, getDelegate, isComplete, map, map, result, setHandler, succeeded, succeededFuture, succeededFuture |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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. If the returned message is modified, BridgeEvent.setRawMessage should be called with the new message.
Use BridgeEvent.getRawMessage instead, will be removed in 3.3
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.
message
- the raw messageGet the SockJSSocket instance corresponding to the event