FabricTransportActorRemoting Interface

public interface FabricTransportActorRemoting

Sets fabric TCP transport as the default remoting provider for the actors.

Method Summary

Modifier and Type Method and Description
long connectTimeoutInMilliseconds()

Gets or Sets the connect timeout in milliseconds. This settings specifies the maximum time allowed for the connection to be established.

Remarks: Default Value for ConnectTimeout Timeout is 5 seconds.

long keepAliveTimeoutInSeconds()

Gets or Sets the keep alive timeout in seconds. This settings is useful in the scenario when the client and service are connected via load balancer that closes the connection if it is idle for some time. If keep alive timeout is configured, the connection will be kept alive by sending ping messages at that interval.

long maxMessageSize()

Gets or Sets the maximum size of the remoting message in bytes. If value for this property is not specified or it is less than or equals to zero, a default value of 4,194,304 bytes (4 MB) is used.

long operationTimeoutInSeconds()

Gets or Sets the operation timeout in seconds. If the operation is not completed in the specified time, it will be timed out. By default, exception handler of FabricTransportServiceRemotingClientFactory retries the timed out exception. It is recommended to not change the operation timeout from it's default value.

Method Details

connectTimeoutInMilliseconds

public long connectTimeoutInMilliseconds()

Gets or Sets the connect timeout in milliseconds. This settings specifies the maximum time allowed for the connection to be established.

Remarks: Default Value for ConnectTimeout Timeout is 5 seconds.

Returns:

The connect timeout in Milliseconds.

keepAliveTimeoutInSeconds

public long keepAliveTimeoutInSeconds()

Gets or Sets the keep alive timeout in seconds. This settings is useful in the scenario when the client and service are connected via load balancer that closes the connection if it is idle for some time. If keep alive timeout is configured, the connection will be kept alive by sending ping messages at that interval.

Returns:

The keep alive timeout in seconds.

maxMessageSize

public long maxMessageSize()

Gets or Sets the maximum size of the remoting message in bytes. If value for this property is not specified or it is less than or equals to zero, a default value of 4,194,304 bytes (4 MB) is used.

Returns:

The maximum size of the remoting message in bytes. If this value is not specified or it is less than or equals to zero, a default value of 4,194,304 bytes (4 MB) is used.

operationTimeoutInSeconds

public long operationTimeoutInSeconds()

Gets or Sets the operation timeout in seconds. If the operation is not completed in the specified time, it will be timed out. By default, exception handler of FabricTransportServiceRemotingClientFactory retries the timed out exception. It is recommended to not change the operation timeout from it's default value.

Returns:

The operation timeout in seconds. If not specified or less than zero, default operation timeout of maximum value is used.

Applies to