ServiceProxyBase Class

定义

Provides the base implementation for the proxy to the remoted IService interfaces.

public class ServiceProxyBase extends ProxyBase implements ServiceProxy
继承
java.lang.Object
ServiceProxyBase

继承成员

方法

create(Class<T> serviceInterfaceType, URI serviceUri)
create(Class<T> serviceInterfaceType, URI serviceUri, ServicePartitionKey partitionKey, TargetReplicaSelector targetReplicaSelector, String listenerName)

Creates a proxy to communicate to the specified service using the remoted interface TServiceInterface that the service implements.

createRequestMessageBody(Object requestMessageBodyValue)
deserializeMessage(byte[] msgBodyValue)
getResponseMessageBodyValue(Object responseMessageBody)
getServiceInterfaceType()

The interface type that is being remoted.

getServicePartitionClient()

The service partition client used to send requests to the service.

initialize(ServiceProxyGenerator serviceProxyGenerator, FabricServiceRemotingPartitionClient remotingPartitionClient)

Method to Initialize the service proxy instance. This is for internal use.

invoke(int interfaceId, int methodId, byte[] requestMsgBodyBytes)
invokeAsync(int interfaceId, int methodId, byte[] requestMsgBodyBytes, CancellationToken cancellationToken)
serializeMessage(Object msgBodyValue)

适用于