Package io.dapr.actors.client
Interface ActorProxy
public interface ActorProxy
Proxy to communicate to a given Actor instance in Dapr.
-
Method Summary
Modifier and Type Method Description ActorId
getActorId()
Returns the ActorId associated with the proxy object.java.lang.String
getActorType()
Returns actor implementation type of the actor associated with the proxy object.reactor.core.publisher.Mono<java.lang.Void>
invokeActorMethod(java.lang.String methodName)
Invokes an Actor method on Dapr.<T> reactor.core.publisher.Mono<T>
invokeActorMethod(java.lang.String methodName, TypeRef<T> type)
Invokes an Actor method on Dapr.<T> reactor.core.publisher.Mono<T>
invokeActorMethod(java.lang.String methodName, java.lang.Class<T> clazz)
Invokes an Actor method on Dapr.reactor.core.publisher.Mono<java.lang.Void>
invokeActorMethod(java.lang.String methodName, java.lang.Object data)
Invokes an Actor method on Dapr.<T> reactor.core.publisher.Mono<T>
invokeActorMethod(java.lang.String methodName, java.lang.Object data, TypeRef<T> type)
Invokes an Actor method on Dapr.<T> reactor.core.publisher.Mono<T>
invokeActorMethod(java.lang.String methodName, java.lang.Object data, java.lang.Class<T> clazz)
Invokes an Actor method on Dapr.
-
Method Details
-
getActorId
ActorId getActorId()Returns the ActorId associated with the proxy object.- Returns:
- An ActorId object.
-
getActorType
java.lang.String getActorType()Returns actor implementation type of the actor associated with the proxy object.- Returns:
- Actor's type name.
-
invokeActorMethod
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(java.lang.String methodName, java.lang.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(java.lang.String methodName, java.lang.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(java.lang.String methodName, java.lang.Object data, java.lang.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<java.lang.Void> invokeActorMethod(java.lang.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<java.lang.Void> invokeActorMethod(java.lang.String methodName, java.lang.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.
-