FabricActorReference 类

定义

Encapsulation of a reference to an actor for serialization.

public class FabricActorReference
继承
java.lang.Object
microsoft.servicefabric.actors.ActorReference
FabricActorReference

构造函数

FabricActorReference()

Initializes a new instance of the ActorReference class.

方法

bind(Class<?> actorInterfaceType)

Creates an ActorProxy using FabricActorProxyFactory#createActorProxy(Class, URI, ActorId, String) method.

get(Object actor)

Gets ActorReference for the actor.

A null value is returned if actor is passed as null.

getActorId()

Gets the ActorId of the actor.

getListenerName()

Gets the name of the listener in the actor service to use when communicating with the actor service.

getServiceUri()

Gets the Uri of the actor service that hosts the actor in service fabric cluster.

setActorId(ActorId actorId)

Sets the ActorId of the actor.

setListenerName(String listenerName)

Sets the name of the listener in the actor service to use when communicating with the actor service.

setServiceUri(URI serviceUri)

Sets the Uri of the actor service that hosts the actor in service fabric cluster.

适用于