public class BaseBridgeEvent extends Future<Boolean>
Please consult the documentation for a full explanation.
NOTE: This class has been automatically generated from theoriginal non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<BaseBridgeEvent> |
__TYPE_ARG |
__typeArg_0| Constructor and Description |
|---|
BaseBridgeEvent(BaseBridgeEvent 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. |
boolean |
equals(Object o) |
BaseBridgeEvent |
getDelegate() |
JsonObject |
getRawMessage()
Get the raw JSON message for the event.
|
int |
hashCode() |
<U> Future<U> |
map(java.util.function.Function<Boolean,U> mapper)
Apply a
mapper function on this future. |
static BaseBridgeEvent |
newInstance(BaseBridgeEvent arg) |
Future<Boolean> |
otherwise(Boolean value)
Map the failure of a future to a specific
value. |
Future<Boolean> |
otherwise(java.util.function.Function<Throwable,Boolean> mapper)
Apply a
mapper function on this future. |
Future<Boolean> |
otherwiseEmpty()
Map the failure of a future to
null. |
Future<Boolean> |
recover(java.util.function.Function<Throwable,Future<Boolean>> mapper)
Handles a failure of this Future by returning the result of another Future.
|
Boolean |
result()
The result of the operation.
|
Single<Boolean> |
rxSetHandler()
Set a handler for the result.
|
Future<Boolean> |
setHandler(Handler<AsyncResult<Boolean>> arg0)
Set a handler for the result.
|
BaseBridgeEvent |
setRawMessage(JsonObject message)
Get the raw JSON message for the event.
|
String |
toString() |
boolean |
tryComplete(Boolean arg0)
Set the failure.
|
BridgeEventType |
type() |
cause, complete, fail, fail, failed, failedFuture, failedFuture, future, future, isComplete, map, mapEmpty, newInstance, newInstance, succeeded, succeededFuture, succeededFuture, tryComplete, tryFail, tryFailpublic static final TypeArg<BaseBridgeEvent> __TYPE_ARG
public BaseBridgeEvent(BaseBridgeEvent delegate)
public BaseBridgeEvent getDelegate()
getDelegate in class Future<Boolean>public Future<Boolean> setHandler(Handler<AsyncResult<Boolean>> arg0)
FutureIf 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 resultpublic Single<Boolean> rxSetHandler()
FutureIf 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)
Futurepublic boolean tryComplete(Boolean arg0)
FuturetryComplete in class Future<Boolean>arg0 - the resultpublic Boolean result()
Futurepublic <U> Future<U> compose(Handler<Boolean> handler, Future<U> next)
Futurenext 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)
Futuremapper 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)
Futuremapper 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 Future<Boolean> recover(java.util.function.Function<Throwable,Future<Boolean>> mapper)
Futurepublic Future<Boolean> otherwise(java.util.function.Function<Throwable,Boolean> mapper)
Futuremapper function on this future.
When this future fails, 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 succeeds, the result will be propagated to the returned future and the mapper
will not be called.
public Future<Boolean> otherwise(Boolean value)
Futurevalue.
When this future fails, this value will complete the future returned by this method call.
When this future succeeds, the result will be propagated to the returned future.
public Future<Boolean> otherwiseEmpty()
Futurenull.
This is a convenience for future.otherwise((T) null).
When this future fails, the null value will complete the future returned by this method call.
When this future succeeds, the result will be propagated to the returned future.
otherwiseEmpty in class Future<Boolean>public BridgeEventType type()
public JsonObject getRawMessage()
setRawMessage(io.vertx.core.json.JsonObject) should be called with the
new message.public BaseBridgeEvent setRawMessage(JsonObject message)
message - the raw messagepublic static BaseBridgeEvent newInstance(BaseBridgeEvent arg)
Copyright © 2018 Eclipse. All rights reserved.