FabricTransportServiceRemotingProvider Class
- java.
lang. Object - ServiceRemotingProvider
- microsoft.
servicefabric. services. remoting. fabrictransport. FabricTransportServiceRemotingProvider
- microsoft.
public class FabricTransportServiceRemotingProvider extends ServiceRemotingProvider
Sets Fabric TCP transport as the default service remoting transport provider in the assembly.
Method Summary
Modifier and Type | Method and Description |
---|---|
Service |
createServiceRemotingClientFactory(ServiceRemotingCallbackClient callbackClient)
Creates a service remoting client factory for connecting to the service over remoted service interfaces. |
Service |
createServiceRemotingListener(ServiceContext serviceContext, Service serviceImplementation)
Creates a service remoting listener for remoting the service interface. |
long |
getConnectTimeoutInMilliseconds()
Gets the connect timeout in milliseconds. This settings specifies the maximum time allowed for the connection to be established. |
long |
getKeepAliveTimeoutInSeconds()
Gets the keepAliveTimeoutInSeconds that provides a way to configure Tcp keep-alive option. |
long |
getMaxMessageSize()
Gets the maximum size for a message that can be received on a channel configured with this setting. |
long |
getOperationTimeoutInSeconds()
Gets the operation Timeout which governs the whole process of sending a message, including receiving a reply message for a request/reply service operation. This timeout also applies when sending reply messages from a callback contract method. |
void |
setConnectTimeoutInMilliseconds(long connectTimeoutInMilliseconds)
Sets the connect timeout in milliseconds. This settings specifies the maximum time allowed for the connection to be established. |
void |
setKeepAliveTimeoutInSeconds(long keepAliveTimeoutInSeconds)
Sets the keepAliveTimeoutInSeconds that provides a way to configure Tcp keep-alive option. Remarks: Default Value for KeepAliveTimeout Timeout is set as TimeSpan.Zero. which indicates we disable the tcp keepalive option.If you are using loadbalancer , you may need to configure this in order to avoid the loadbalancer to close the connection after certain time. |
void |
setMaxMessageSize(long maxMessageSize)
Sets the maximum size for a message that can be received on a channel configured with this setting. |
void |
setOperationTimeoutInSeconds(long operationTimeoutInSeconds)
Sets the operation Timeout which governs the whole process of sending a message, including receiving a reply message for a request/reply service operation. This timeout also applies when sending reply messages from a callback contract method. |
Inherited Members
Method Details
createServiceRemotingClientFactory
public ServiceRemotingClientFactory createServiceRemotingClientFactory(ServiceRemotingCallbackClient callbackClient)
Creates a service remoting client factory for connecting to the service over remoted service interfaces.
Parameters:
Returns:
createServiceRemotingListener
public ServiceRemotingListener createServiceRemotingListener(ServiceContext serviceContext, Service serviceImplementation)
Creates a service remoting listener for remoting the service interface.
Parameters:
Returns:
getConnectTimeoutInMilliseconds
public long getConnectTimeoutInMilliseconds()
Gets the connect timeout in milliseconds. This settings specifies the maximum time allowed for the connection to be established.
Returns:
getKeepAliveTimeoutInSeconds
public long getKeepAliveTimeoutInSeconds()
Gets the keepAliveTimeoutInSeconds that provides a way to configure Tcp keep-alive option.
Returns:
getMaxMessageSize
public long getMaxMessageSize()
Gets the maximum size for a message that can be received on a channel configured with this setting.
Returns:
getOperationTimeoutInSeconds
public long getOperationTimeoutInSeconds()
Gets the operation Timeout which governs the whole process of sending a message, including receiving a reply message for a request/reply service operation. This timeout also applies when sending reply messages from a callback contract method.
Returns:
setConnectTimeoutInMilliseconds
public void setConnectTimeoutInMilliseconds(long connectTimeoutInMilliseconds)
Sets the connect timeout in milliseconds. This settings specifies the maximum time allowed for the connection to be established.
Parameters:
setKeepAliveTimeoutInSeconds
public void setKeepAliveTimeoutInSeconds(long keepAliveTimeoutInSeconds)
Sets the keepAliveTimeoutInSeconds that provides a way to configure Tcp keep-alive option. Remarks: Default Value for KeepAliveTimeout Timeout is set as TimeSpan.Zero. which indicates we disable the tcp keepalive option.If you are using loadbalancer , you may need to configure this in order to avoid the loadbalancer to close the connection after certain time.
Parameters:
setMaxMessageSize
public void setMaxMessageSize(long maxMessageSize)
Sets the maximum size for a message that can be received on a channel configured with this setting.
Parameters:
setOperationTimeoutInSeconds
public void setOperationTimeoutInSeconds(long operationTimeoutInSeconds)
Sets the operation Timeout which governs the whole process of sending a message, including receiving a reply message for a request/reply service operation. This timeout also applies when sending reply messages from a callback contract method.
Parameters:
Applies to
Azure SDK for Java