Modifier and Type | Field and Description |
---|---|
static TypeArg<BridgeEvent> |
__TYPE_ARG |
__typeArg_0
Constructor and Description |
---|
BridgeEvent(BridgeEvent delegate) |
Modifier and Type | Method and Description |
---|---|
void |
complete(Boolean arg0)
Set the result.
|
Handler<AsyncResult<Boolean>> |
completer() |
<U> Future<U> |
compose(java.util.function.Function<Boolean,Future<U>> mapper)
Compose this future with a
mapper function. |
<U> Future<U> |
compose(Handler<Boolean> handler,
Future<U> next)
Compose this future with a provided
next future. |
BridgeEvent |
getDelegate() |
JsonObject |
getRawMessage()
Get the raw JSON message for the event.
|
<U> Future<U> |
map(java.util.function.Function<Boolean,U> mapper)
Apply a
mapper function on this future. |
static BridgeEvent |
newInstance(BridgeEvent arg) |
JsonObject |
rawMessage()
Use
getRawMessage() instead, will be removed in 3.3 |
Boolean |
result()
The result of the operation.
|
rx.Single<Boolean> |
rxSetHandler()
Set a handler for the result.
|
Future<Boolean> |
setHandler(Handler<AsyncResult<Boolean>> arg0)
Set a handler for the result.
|
rx.Observable<Boolean> |
setHandlerObservable()
Deprecated.
|
BridgeEvent |
setRawMessage(JsonObject message)
Get the raw JSON message for the event.
|
SockJSSocket |
socket()
Get the SockJSSocket instance corresponding to the event
|
BridgeEventType |
type() |
cause, complete, fail, fail, failed, failedFuture, failedFuture, future, isComplete, map, newInstance, newInstance, succeeded, succeededFuture, succeededFuture
public static final TypeArg<BridgeEvent> __TYPE_ARG
public BridgeEvent(BridgeEvent delegate)
public BridgeEvent getDelegate()
getDelegate
in class Future<Boolean>
public Future<Boolean> setHandler(Handler<AsyncResult<Boolean>> arg0)
Future
If the future has already been completed it will be called immediately. Otherwise it will be called when the future is completed.
setHandler
in class Future<Boolean>
arg0
- the Handler that will be called with the result@Deprecated public rx.Observable<Boolean> setHandlerObservable()
Future
If the future has already been completed it will be called immediately. Otherwise it will be called when the future is completed.
setHandlerObservable
in class Future<Boolean>
public rx.Single<Boolean> rxSetHandler()
Future
If the future has already been completed it will be called immediately. Otherwise it will be called when the future is completed.
rxSetHandler
in class Future<Boolean>
public void complete(Boolean arg0)
Future
public Boolean result()
Future
public <U> Future<U> compose(Handler<Boolean> handler, Future<U> next)
Future
next
future.
When this (the one on which compose
is called) future succeeds, the handler
will be called with
the completed value, this handler should complete the next future.
If the handler
throws an exception, the returned future will be failed with this exception.
When this future fails, the failure will be propagated to the next
future and the handler
will not be called.
public <U> Future<U> compose(java.util.function.Function<Boolean,Future<U>> mapper)
Future
mapper
function.
When this future (the one on which compose
is called) succeeds, the mapper
will be called with
the completed value and this mapper returns another future object. This returned future completion will complete
the future returned by this method call.
If the mapper
throws an exception, the returned future will be failed with this exception.
When this future fails, the failure will be propagated to the returned future and the mapper
will not be called.
public <U> Future<U> map(java.util.function.Function<Boolean,U> mapper)
Future
mapper
function on this future.
When this future succeeds, the mapper
will be called with the completed value and this mapper
returns a value. This value will complete the future returned by this method call.
If the mapper
throws an exception, the returned future will be failed with this exception.
When this future fails, the failure will be propagated to the returned future and the mapper
will not be called.
public Handler<AsyncResult<Boolean>> completer()
public BridgeEventType type()
public JsonObject rawMessage()
getRawMessage()
instead, will be removed in 3.3public JsonObject getRawMessage()
setRawMessage(io.vertx.core.json.JsonObject)
should be called with the
new message.public BridgeEvent setRawMessage(JsonObject message)
message
- the raw messagepublic SockJSSocket socket()
public static BridgeEvent newInstance(BridgeEvent arg)
Copyright © 2017. All rights reserved.