-
- All Superinterfaces:
FtHandler
public interface Timeout extends FtHandler
Timeout attempts to terminate execution after a duration time passes. In such a case, the consumer of this handler receives aSingle
orMulti
with aTimeoutException
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Timeout.Builder
Fluent API builder forTimeout
.
-
Method Summary
Static Methods Modifier and Type Method Description static Timeout.Builder
builder()
A builder to create a customizedTimeout
.static Timeout
create(Duration timeout)
Create aTimeout
with specified timeout.-
Methods inherited from interface io.helidon.faulttolerance.FtHandler
invoke, invokeMulti, name
-
-
-
-
Method Detail
-
builder
static Timeout.Builder builder()
A builder to create a customizedTimeout
.- Returns:
- a new builder
-
-