Package akka.javasdk.decision
Interface DecisionModelProvider.Custom
- All Superinterfaces:
DecisionModelProvider
- Enclosing interface:
DecisionModelProvider
A provider that answers in the service process instead of calling a model, for example a mock
in tests.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.decision.DecisionModelProvider
DecisionModelProvider.Custom, DecisionModelProvider.DecisionRequest, DecisionModelProvider.FromConfig, DecisionModelProvider.SystemOne -
Method Summary
Modifier and TypeMethodDescriptionAnswer the request.
-
Method Details
-
decide
Answer the request. The returned decision must answer every question with an answer that matches the type, options and levels of the question. The client checks the answers and fails the call withModelExceptionwhen one is missing or does not match. Answers for questions that the request did not ask are dropped.The client calls this method on the SDK executor and waits for the result, so it may block. The client applies no timeout, retries or tracing to the call. An exception thrown here fails the request with that exception, unchanged.
-