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

pack-priv Class Composition<T, U>

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

Function compose transformation.
Author
Julien Viet

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
Composition(ContextInternal context, Function<T, Future<U>> successMapper, Function<Throwable, Future<U>> failureMapper)

Method Summary

Modifier and TypeMethod and Description
private Listener<U>
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

failureMapperback to summary
private final Function<Throwable, Future<U>> failureMapper
successMapperback to summary
private final Function<T, Future<U>> successMapper

Constructor Detail

Compositionback to summary
pack-priv Composition(ContextInternal context, Function<T, Future<U>> successMapper, Function<Throwable, Future<U>> failureMapper)

Method Detail

newListenerback to summary
private Listener<U> newListener()
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