ActorProxyFactory Interface
public interface ActorProxyFactory
Defines the interface containing methods to create actor proxy factory class.
Method Summary
Modifier and Type | Method and Description |
---|---|
public<T extends Actor> T |
createActorProxy(Class<T> actorInterfaceType, ActorId actorId)
Creates a proxy to the actor object that implements an actor interface. |
public<T extends Actor> T |
createActorProxy(Class<T> actorInterfaceType, ActorId actorId, String applicationName, String serviceName, String listenerName)
Creates a proxy to the actor object that implements an actor interface. |
public<T extends Actor> T |
createActorProxy(Class<T> actorInterfaceType, URI serviceUri, ActorId actorId)
Creates a proxy to the actor object that implements an actor interface. |
public<T extends Actor> T |
createActorProxy(Class<T> actorInterfaceType, URI serviceUri, ActorId actorId, String listenerName)
Creates a proxy to the actor object that implements an actor interface. |
public<T extends Service> T |
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, 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)
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)
Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface. |
Method Details
createActorProxy
public public
Creates a proxy to the actor object that implements an actor interface.
Parameters:
Returns:
createActorProxy
public public
Creates a proxy to the actor object that implements an actor interface.
Parameters:
Returns:
Throws:
createActorProxy
public public
Creates a proxy to the actor object that implements an actor interface.
Parameters:
Returns:
createActorProxy
public public
Creates a proxy to the actor object that implements an actor interface.
Parameters:
Returns:
createActorServiceProxy
public public
Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.
Parameters:
Returns:
A service proxy object that implements ServiceProxy and<T>
</code> . </p>
createActorServiceProxy
public public T createActorServiceProxy(Class 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.
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>
createActorServiceProxy
public public T createActorServiceProxy(Class 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.
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>
createActorServiceProxy
public public T createActorServiceProxy(Class 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.
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>
Applies to
Azure SDK for Java