FabricActorReference Class
- java.
lang. Object - microsoft.
servicefabric. actors. ActorReference - microsoft.
servicefabric. actors. FabricActorReference
- microsoft.
- microsoft.
public class FabricActorReference
Encapsulation of a reference to an actor for serialization.
Constructor Summary
Constructor | Description |
---|---|
FabricActorReference() |
Initializes a new instance of the ActorReference class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Object |
bind(Class<?> actorInterfaceType)
Creates an ActorProxy using FabricActorProxyFactory#createActorProxy(Class, URI, ActorId, String) method. |
Fabric |
get(Object actor)
Gets ActorReference for the actor. A null value is returned if actor is passed as null. |
Actor |
getActorId()
Gets the ActorId of the actor. |
String |
getListenerName()
Gets the name of the listener in the actor service to use when communicating with the actor service. |
URI |
getServiceUri()
Gets the Uri of the actor service that hosts the actor in service fabric cluster. |
void |
setActorId(ActorId actorId)
Sets the ActorId of the actor. |
void |
setListenerName(String listenerName)
Sets the name of the listener in the actor service to use when communicating with the actor service. |
void |
setServiceUri(URI serviceUri)
Sets the Uri of the actor service that hosts the actor in service fabric cluster. |
Constructor Details
FabricActorReference
public FabricActorReference()
Initializes a new instance of the ActorReference class.
Method Details
bind
public Object bind(Class actorInterfaceType)
Creates an ActorProxy using FabricActorProxyFactory#createActorProxy(Class, URI, ActorId, String) method.
Parameters:
Returns:
get
public static FabricActorReference get(Object actor)
Gets ActorReference for the actor.
A null value is returned if actor is passed as null.
Parameters:
Returns:
ActorReference object for the actor.
getActorId
getListenerName
public String getListenerName()
Gets the name of the listener in the actor service to use when communicating with the actor service.
Returns:
getServiceUri
public URI getServiceUri()
Gets the Uri of the actor service that hosts the actor in service fabric cluster.
Returns:
setActorId
public void setActorId(ActorId actorId)
Sets the ActorId of the actor.
Parameters:
setListenerName
public void setListenerName(String listenerName)
Sets the name of the listener in the actor service to use when communicating with the actor service.
Parameters:
setServiceUri
public void setServiceUri(URI serviceUri)
Sets the Uri of the actor service that hosts the actor in service fabric cluster.
Parameters:
Applies to
Azure SDK for Java