Class Fallback.DEFAULT
java.lang.Object
org.eclipse.microprofile.faulttolerance.Fallback.DEFAULT
- All Implemented Interfaces:
FallbackHandler<Void>
- Enclosing class:
- Fallback
Create a default class so the value is not required to be set all the time.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandle
(ExecutionContext context) Handle the previous calling failure and then call alternative methods or perform any alternative operations.
-
Constructor Details
-
DEFAULT
public DEFAULT()
-
-
Method Details
-
handle
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<Void>
- Parameters:
context
- the execution context- Returns:
- the result of the fallback
-