Package akka.javasdk.client
Interface DynamicMethodRef<A1,R>
- Type Parameters:
A1
- the argument type of the callR
- The type of value returned by executing the call
@DoNotInherit
public interface DynamicMethodRef<A1,R>
Zero or one argument component call representation, not executed until invoked.
Not for user extension or instantiation, returned by the SDK component client
-
Method Summary
Modifier and TypeMethodDescriptioninvoke()
invokeAsync
(A1 arg) withMetadata
(Metadata metadata) withRetry
(int maxRetries) Set the retry settings for this call.withRetry
(akka.pattern.RetrySettings retrySettings) Set the retry settings for this call.
-
Method Details
-
withMetadata
-
withRetry
Set the retry settings for this call.- Parameters:
retrySettings
- The retry settings- Returns:
- A new call with the retry settings set
-
withRetry
Set the retry settings for this call. A predefined backoff strategy will be calculated based on the number of maxRetries.- Parameters:
maxRetries
- The number of retries to make- Returns:
- A new call with the retry settings set
-
invokeAsync
-
invoke
-
invokeAsync
CompletionStage<R> invokeAsync() -
invoke
R invoke()
-