Package dev.agenor.core.hitl
Class DefaultApprovalNotifier
java.lang.Object
dev.agenor.core.hitl.DefaultApprovalNotifier
- All Implemented Interfaces:
ApprovalNotifier
Sentinel class used as the default value of
RequiresApproval.notifier().
This class is never instantiated directly. When the runtime wiring
encounters this sentinel it substitutes the concrete default implementation
(LoggingApprovalNotifier) so that agenor-core has no dependency
on agenor-runtime.
- Since:
- 0.13.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidnotify(ApprovalRequest request) Sends a notification thatrequestis awaiting human approval.
-
Method Details
-
notify
Description copied from interface:ApprovalNotifierSends a notification thatrequestis awaiting human approval.This method must not throw checked exceptions. Transient failures (network errors, timeouts) should be caught and logged internally.
- Specified by:
notifyin interfaceApprovalNotifier- Parameters:
request- the pending approval request; nevernull
-