Top Fields Constructors Methods
io.vertx.core.impl.future

pack-priv Class Otherwise<T>

extends Operation<T>
implements Listener<T>
Class Inheritance
All Implemented Interfaces
io.vertx.core.impl.future.Listener
Imports
io.vertx.core.impl.ContextInternal, java.util.function.Function

Field Summary

Modifier and TypeField and Description
private final Function<Throwable, T>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
onFailure(Throwable
the failure
failure
)

Implements io.vertx.core.impl.future.Listener.onFailure.

Signal the failure

public void
onSuccess(T
the value
value
)

Implements io.vertx.core.impl.future.Listener.onSuccess.

Signal the success.

Field Detail

mapperback to summary
private final Function<Throwable, T> mapper

Constructor Detail

Otherwiseback to summary
pack-priv Otherwise(ContextInternal context, Function<Throwable, T> mapper)

Method Detail

onFailureback to summary
public void onFailure(Throwable failure)

Implements io.vertx.core.impl.future.Listener.onFailure.

Doc from io.vertx.core.impl.future.Listener.onFailure.

Signal the failure

Parameters
failure:Throwable

the failure

Annotations
@Override
onSuccessback to summary
public void onSuccess(T value)

Implements io.vertx.core.impl.future.Listener.onSuccess.

Doc from io.vertx.core.impl.future.Listener.onSuccess.

Signal the success.

Parameters
value:T

the value

Annotations
@Override