你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ActorServiceProxy Class
- java.
lang. Object - microsoft.
servicefabric. actors. ActorServiceProxy
- microsoft.
public class ActorServiceProxy
Proxy used by clients to interact with the actor service running in Service Fabric cluster and perform actor service level operations.
Method Summary
Modifier and Type | Method and Description |
---|---|
static<T extends Service> T |
create(Class<T> serviceInterfaceType, URI serviceUri, ActorId actorId)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface. |
static<T extends Service> T |
create(Class<T> serviceInterfaceType, URI serviceUri, ActorId actorId, String listenerName)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface. |
static<T extends Service> T |
create(Class<T> serviceInterfaceType, URI serviceUri, long partitionKey)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface. |
static<T extends Service> T |
create(Class<T> serviceInterfaceType, URI serviceUri, long partitionKey, String listenerName)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface. |
Actor |
create(URI serviceUri, ActorId actorId)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface. |
Actor |
create(URI serviceUri, ActorId actorId, String listenerName)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface. |
Actor |
create(URI serviceUri, long partitionKey)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface. |
Actor |
create(URI serviceUri, long partitionKey, String listenerName)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface. |
Method Details
create
public static static
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface.
Parameters:
Returns:
A service proxy object that implements ServiceProxy and<T>
</code> . </p>
create
public static static T create(Class serviceInterfaceType, URI serviceUri, ActorId actorId, String listenerName)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface.
Parameters:
serviceInterfaceType
- The service interface type implemented by the actor service.
serviceUri
- Uri of the actor service to connect to.
actorId
- Id of the actor. The created proxy will be connected to the partition of the actor service hosting actor with this id.
listenerName
- 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.
Returns:
A service proxy object that implements ServiceProxy and<T>
</code> . </p>
create
public static static T create(Class serviceInterfaceType, URI serviceUri, long partitionKey)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface.
Parameters:
serviceInterfaceType
- The service interface type implemented by the actor service.
serviceUri
- Uri of the actor service to connect to.
partitionKey
- The key of the actor service partition to connect to.
Returns:
A service proxy object that implements ServiceProxy and<T>
</code> . </p>
create
public static static T create(Class serviceInterfaceType, URI serviceUri, long partitionKey, String listenerName)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface.
Parameters:
serviceInterfaceType
- The service interface type implemented by the actor service.
serviceUri
- Uri of the actor service to connect to.
partitionKey
- The key of the actor service partition to connect to.
listenerName
- 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.
Returns:
A service proxy object that implements ServiceProxy and<T>
</code> . </p>
create
public static ActorService create(URI serviceUri, ActorId actorId)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface.
Parameters:
serviceUri
- Uri of the actor service to connect to.
actorId
- Id of the actor. The created proxy will be connected to the partition of the actor service hosting actor with this id.
Returns:
A service proxy object that implements ServiceProxy and ActorService interfaces.
create
public static ActorService create(URI serviceUri, ActorId actorId, String listenerName)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface.
Parameters:
serviceUri
- Uri of the actor service to connect to.
actorId
- Id of the actor. The created proxy will be connected to the partition of the actor service hosting actor with this id.
listenerName
- 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.
Returns:
A service proxy object that implements ServiceProxy and ActorService interfaces.
create
public static ActorService create(URI serviceUri, long partitionKey)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface.
Parameters:
serviceUri
- Uri of the actor service to connect to.
partitionKey
- The key of the actor service partition to connect to.
Returns:
A service proxy object that implements ServiceProxy and ActorService interfaces.
create
public static ActorService create(URI serviceUri, long partitionKey, String listenerName)
Create a proxy to the actor service that is hosting the specified type of actor and implementing specified type of the service interface.
Parameters:
serviceUri
- Uri of the actor service to connect to.
partitionKey
- The key of the actor service partition to connect to.
listenerName
- 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.
Returns:
A service proxy object that implements ServiceProxy and ActorService interfaces.
Applies to