FabricActorProxyFactory.createActorServiceProxy Method

定义

重载

createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, ActorId actorId)

Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.

createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, ActorId actorId, String listenerName)

Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.

createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, long partitionKey)

Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.

createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, long partitionKey, String listenerName)

Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.

createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, ActorId actorId)

Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.

public <T extends Service> T createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, ActorId actorId)

参数

serviceInterfaceType
Class<T>

The service interface type implemented by the actor service.

serviceUri
URI

Uri of the actor service to connect to.

actorId
ActorId

Id of the actor. The created proxy will be connected to the partition of the actor service hosting actor with this id.

返回

<T extends Service> T

A service proxy object that implements microsoft.servicefabric.services.remoting.client.ServiceProxyBase and T (Service Interface).

替代

createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, ActorId actorId, String listenerName)

Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.

public <T extends Service> T createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, ActorId actorId, String listenerName)

参数

serviceInterfaceType
Class<T>

The service interface type implemented by the actor service.

serviceUri
URI

Uri of the actor service to connect to.

actorId
ActorId

Id of the actor. The created proxy will be connected to the partition of the actor service hosting actor with this id.

listenerName
String

By default an actor service has only one listener for clients to connect to and communicate with. However it is possible to configure an actor service with more than one listeners, the listenerName parameter specifies the name of the listener to connect to.

返回

<T extends Service> T

A service proxy object that implements microsoft.servicefabric.services.remoting.client.ServiceProxyBase and T (Service Interface).

替代

createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, long partitionKey)

Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.

public <T extends Service> T createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, long partitionKey)

参数

serviceInterfaceType
Class<T>

The service interface type implemented by the actor service.

serviceUri
URI

Uri of the actor service to connect to.

partitionKey
long

The key of the actor service partition to connect to.

返回

<T extends Service> T

A service proxy object that implements microsoft.servicefabric.services.remoting.client.ServiceProxyBase and T (Service Interface).

替代

createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, long partitionKey, String listenerName)

Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.

public <T extends Service> T createActorServiceProxy(Class<T> serviceInterfaceType, URI serviceUri, long partitionKey, String listenerName)

参数

serviceInterfaceType
Class<T>

The service interface type implemented by the actor service.

serviceUri
URI

Uri of the actor service to connect to.

partitionKey
long

The key of the actor service partition to connect to.

listenerName
String

By default an actor service has only one listener for clients to connect to and communicate with. However it is possible to configure an actor service with more than one listeners, the listenerName parameter specifies the name of the listener to connect to.

返回

<T extends Service> T

A service proxy object that implements microsoft.servicefabric.services.remoting.client.ServiceProxyBase and T (Service Interface).

替代

适用于