ActorProxyBase Class
- java.
lang. Object - ProxyBase
- microsoft.
servicefabric. actors. client. ActorProxyBase
- microsoft.
public class ActorProxyBase extends ProxyBase implements ActorProxy
Provides the base implementation for the proxy to the remote actor objects implementing IActor interfaces.
Constructor Summary
Constructor | Description |
---|---|
ActorProxyBase() |
Initializes a new instance of the ActorProxy class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static<T extends Actor> T |
create(Class<T> actorInterfaceType, ActorId actorId)
Creates a proxy to the actor object that implements an actor interface. The applicationName parameter can be null if the client is running as part of the same Service Fabric application as the actor service it intends to communicate with. In this case, the application name is determined from CodePackageActivationContext, and is obtained by calling the getApplicationName() property. |
static<T extends Actor> T |
create(Class<T> actorInterfaceType, ActorId actorId, String applicationName)
Creates a proxy to the actor object that implements an actor interface. The applicationName parameter can be null if the client is running as part of the same Service Fabric application as the actor service it intends to communicate with. In this case, the application name is determined from CodePackageActivationContext, and is obtained by calling the getApplicationName() property. |
static<T extends Actor> T |
create(Class<T> actorInterfaceType, ActorId actorId, String applicationName, String serviceName)
Creates a proxy to the actor object that implements an actor interface. The applicationName parameter can be null if the client is running as part of the same Service Fabric application as the actor service it intends to communicate with. In this case, the application name is determined from CodePackageActivationContext, and is obtained by calling the getApplicationName() property. |
static<T extends Actor> T |
create(Class<T> actorInterfaceType, ActorId actorId, String applicationName, String serviceName, String listenerName)
Creates a proxy to the actor object that implements an actor interface. The applicationName parameter can be null if the client is running as part of the same Service Fabric application as the actor service it intends to communicate with. In this case, the application name is determined from CodePackageActivationContext, and is obtained by calling the getApplicationName() property. |
static<T extends Actor> T |
create(Class<T> actorInterfaceType, ActorId actorId, URI serviceUri)
Creates a proxy to the actor object that implements an actor interface. |
static<T extends Actor> T |
create(Class<T> actorInterfaceType, ActorId actorId, URI serviceUri, String listenerName)
Creates a proxy to the actor object that implements an actor interface. |
Object | createRequestMessageBody(Object requestMessageBodyValue) |
Object | deserializeMessage(byte[] msgBodyValue) |
Actor |
getActorId()
Gets ActorId associated with the proxy object. |
ActorServicePartitionClientImpl |
getActorServicePartitionClient()
Gets microsoft.servicefabric.actors.remoting.client.internal.ActorServicePartitionClientImpl that this proxy is using to communicate with the actor. |
Fabric |
getDefaultProxyFactory()
Gets the default actor proxy factory. |
Object | getResponseMessageBodyValue(Object responseMessageBody) |
void |
initialize(ActorServicePartitionClientImpl actorServicePartitionClient)
Method to initialize the actor proxy instance For internal use only. |
void | invoke(int interfaceId, int methodId, byte[] requestMsgBodyBytes) |
CompletableFuture<byte[]> | invokeAsync(int interfaceId, int methodId, byte[] requestMsgBodyBytes, CancellationToken cancellationToken) |
byte [] | serializeMessage(Object msgBodyValue) |
Inherited Members
Constructor Details
ActorProxyBase
protected ActorProxyBase()
Initializes a new instance of the ActorProxy class.
Method Details
create
public static static
Creates a proxy to the actor object that implements an actor interface.
The applicationName parameter can be null if the client is running as part of the same Service Fabric application as the actor service it intends to communicate with. In this case, the application name is determined from CodePackageActivationContext, and is obtained by calling the getApplicationName() property.
Parameters:
Returns:
Throws:
create
public static static
Creates a proxy to the actor object that implements an actor interface.
The applicationName parameter can be null if the client is running as part of the same Service Fabric application as the actor service it intends to communicate with. In this case, the application name is determined from CodePackageActivationContext, and is obtained by calling the getApplicationName() property.
Parameters:
Returns:
Throws:
create
public static static
Creates a proxy to the actor object that implements an actor interface.
The applicationName parameter can be null if the client is running as part of the same Service Fabric application as the actor service it intends to communicate with. In this case, the application name is determined from CodePackageActivationContext, and is obtained by calling the getApplicationName() property.
Parameters:
Returns:
Throws:
create
public static static
Creates a proxy to the actor object that implements an actor interface.
The applicationName parameter can be null if the client is running as part of the same Service Fabric application as the actor service it intends to communicate with. In this case, the application name is determined from CodePackageActivationContext, and is obtained by calling the getApplicationName() property.
Parameters:
Returns:
Throws:
create
public static static
Creates a proxy to the actor object that implements an actor interface.
Parameters:
Returns:
create
public static static
Creates a proxy to the actor object that implements an actor interface.
Parameters:
Returns:
createRequestMessageBody
protected Object createRequestMessageBody(Object requestMessageBodyValue)
Parameters:
deserializeMessage
protected Object deserializeMessage(byte[] msgBodyValue)
Parameters:
getActorId
getActorServicePartitionClient
public ActorServicePartitionClientImpl getActorServicePartitionClient()
Gets microsoft.servicefabric.actors.remoting.client.internal.ActorServicePartitionClientImpl that this proxy is using to communicate with the actor.
Overrides:
ActorProxyBase.getActorServicePartitionClient()Returns:
microsoft.servicefabric.actors.remoting.client.internal.ActorServicePartitionClientImpl that this proxy is using to communicate with the actor.
getDefaultProxyFactory
public static FabricActorProxyFactory getDefaultProxyFactory()
Gets the default actor proxy factory.
Returns:
getResponseMessageBodyValue
protected Object getResponseMessageBodyValue(Object responseMessageBody)
Parameters:
initialize
public void initialize(ActorServicePartitionClientImpl actorServicePartitionClient)
Method to initialize the actor proxy instance For internal use only.
Parameters:
invoke
protected void invoke(int interfaceId, int methodId, byte[] requestMsgBodyBytes)
Parameters:
invokeAsync
protected CompletableFuture
Parameters:
serializeMessage
protected byte [] serializeMessage(Object msgBodyValue)
Parameters:
Applies to
Azure SDK for Java