Interface DynamicMethodRef<A1,R>

Type Parameters:
A1 - the argument type of the call
R - 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 Details

    • withMetadata

      DynamicMethodRef<A1,R> withMetadata(Metadata metadata)
    • withRetry

      DynamicMethodRef<A1,R> withRetry(akka.pattern.RetrySettings retrySettings)
      Set the retry settings for this call.
      Parameters:
      retrySettings - The retry settings
      Returns:
      A new call with the retry settings set
    • withRetry

      DynamicMethodRef<A1,R> withRetry(int maxRetries)
      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

      CompletionStage<R> invokeAsync(A1 arg)
    • invoke

      R invoke(A1 arg)
    • invokeAsync

      CompletionStage<R> invokeAsync()
    • invoke

      R invoke()