Class Fallback.DEFAULT
- java.lang.Object
-
- org.eclipse.microprofile.faulttolerance.Fallback.DEFAULT
-
- All Implemented Interfaces:
FallbackHandler<java.lang.Void>
- Enclosing class:
- Fallback
public static class Fallback.DEFAULT extends java.lang.Object implements FallbackHandler<java.lang.Void>
Create a default class so the value is not required to be set all the time.
-
-
Constructor Summary
Constructors Constructor Description DEFAULT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Void
handle(ExecutionContext context)
Handle the previous calling failure and then call alternative methods or perform any alternative operations.
-
-
-
Method Detail
-
handle
public java.lang.Void handle(ExecutionContext context)
Description copied from interface:FallbackHandler
Handle the previous calling failure and then call alternative methods or perform any alternative operations.- Specified by:
handle
in interfaceFallbackHandler<java.lang.Void>
- Parameters:
context
- the execution context- Returns:
- the result of the fallback
-
-