Interface ActorProxy


public interface ActorProxy
Proxy to communicate to a given Actor instance in Dapr.
  • Method Details

    • getActorId

      ActorId getActorId()
      Returns the ActorId associated with the proxy object.
      Returns:
      An ActorId object.
    • getActorType

      String getActorType()
      Returns actor implementation type of the actor associated with the proxy object.
      Returns:
      Actor's type name.
    • invokeActorMethod

      <T> reactor.core.publisher.Mono<T> invokeActorMethod​(String methodName, TypeRef<T> type)
      Invokes an Actor method on Dapr.
      Type Parameters:
      T - The type to be returned.
      Parameters:
      methodName - Method name to invoke.
      type - The type of the return class.
      Returns:
      Asynchronous result with the Actor's response.
    • invokeActorMethod

      <T> reactor.core.publisher.Mono<T> invokeActorMethod​(String methodName, Class<T> clazz)
      Invokes an Actor method on Dapr.
      Type Parameters:
      T - The type to be returned.
      Parameters:
      methodName - Method name to invoke.
      clazz - The type of the return class.
      Returns:
      Asynchronous result with the Actor's response.
    • invokeActorMethod

      <T> reactor.core.publisher.Mono<T> invokeActorMethod​(String methodName, Object data, TypeRef<T> type)
      Invokes an Actor method on Dapr.
      Type Parameters:
      T - The type to be returned.
      Parameters:
      methodName - Method name to invoke.
      data - Object with the data.
      type - The type of the return class.
      Returns:
      Asynchronous result with the Actor's response.
    • invokeActorMethod

      <T> reactor.core.publisher.Mono<T> invokeActorMethod​(String methodName, Object data, Class<T> clazz)
      Invokes an Actor method on Dapr.
      Type Parameters:
      T - The type to be returned.
      Parameters:
      methodName - Method name to invoke.
      data - Object with the data.
      clazz - The type of the return class.
      Returns:
      Asynchronous result with the Actor's response.
    • invokeActorMethod

      reactor.core.publisher.Mono<Void> invokeActorMethod​(String methodName)
      Invokes an Actor method on Dapr.
      Parameters:
      methodName - Method name to invoke.
      Returns:
      Asynchronous result with the Actor's response.
    • invokeActorMethod

      reactor.core.publisher.Mono<Void> invokeActorMethod​(String methodName, Object data)
      Invokes an Actor method on Dapr.
      Parameters:
      methodName - Method name to invoke.
      data - Object with the data.
      Returns:
      Asynchronous result with the Actor's response.