mirror of
https://github.com/jlengrand/helidon.git
synced 2026-03-10 08:21:17 +00:00
committed by
Santiago Pericasgeertsen
parent
ad0c19ecfb
commit
24e5c7d8aa
@@ -34,14 +34,14 @@ import io.helidon.common.reactive.Single;
|
||||
* Async async = Async.create();
|
||||
*
|
||||
* // call a method with no parameters
|
||||
* Single<String> result = async.invoke(this::slowSync);
|
||||
* Single<String> result = async.invoke(this::slowSync);
|
||||
*
|
||||
* // call a method with parameters
|
||||
* async.invoke(() -> processRequest(request))
|
||||
* async.invoke(() -> processRequest(request))
|
||||
* .thenApply(response::send);
|
||||
*
|
||||
* // use async to obtain a Multi (from a method returning List of strings)
|
||||
* Multi<String> stringMulti = async.invoke(this::syncList)
|
||||
* Multi<String> stringMulti = async.invoke(this::syncList)
|
||||
* .flatMap(Multi::create);
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
@@ -189,6 +189,7 @@ public final class FaultTolerance {
|
||||
* Add a handler to the list. This may be a custom handler or one of the predefined ones.
|
||||
*
|
||||
* @param ft fault tolerance handler to add
|
||||
* @return updated builder instance
|
||||
*/
|
||||
public abstract B add(FtHandler ft);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user