FabricClientSettings 类

定义

Represents the configuration settings for the FabricClient class.

public class FabricClientSettings
继承
java.lang.Object
FabricClientSettings

构造函数

FabricClientSettings()

Creates an Instance of system.fabric.FabricClientSettings

方法

getClientFriendlyName()

Gets the client friendly name that will appear in Service Fabric traces for debugging.

Remarks: The default value is null and the client friendly name will automatically be generated as a UUID internally.

getConnectionInitializationTimeout()

Gets the timeout after which, if the current gateway address does not respond with a valid connection, another different address is randomly selected from the gateway addresses collection.

Remarks:The default value of this property is 2 seconds. This property must be less than the value of the getServiceChangePollInterval() property.

getHealthOperationTimeout()

Gets the timeout on health operation requests from the client to the gateway.

Remarks:The default value of this property is 120 seconds.

getHealthReportRetrySendInterval()

Gets the retry interval at which health reports that have not yet been acknowledged by the Health Manager are resent.

Remarks:The default value of this property is 30 seconds.

getHealthReportSendInterval()

Gets the interval at which health reports are sent to Health Manager.

Remarks:The default value of this property is 30 seconds.

getKeepAliveInterval()

Gets the interval at which the FabricClient will ping the connected endpoint.

Remarks:The default value of this property is 0 seconds. This property can't be updated after the FabricClient is opened. Setting this property will throw a java.lang.IllegalArgumentException exception. FabricClient will continue pinging as long as it has pending operations.

getNotificationCacheUpdateTimeout()

Gets the timeout for updating the local cache in response to service notifications. The default value is 30 seconds.

getNotificationGatewayConnectionTimeout()

Gets the timeout for running a re-connection protocol if the client has registered for service notifications. The default value is 30 seconds.

getPartitionLocationCacheBucketCount()

Gets the bucket count used by the client’s service resolution cache.

Remarks:The default value is 1024.

getPartitionLocationCacheLimit()

Gets the maximum number of cached location entries on the client.

Remarks:The default value of this property is 1000. This property is not updatable. Setting this property will throw a java.lang.IllegalArgumentException exception. When the cache limit is reached the oldest entries are discarded first. The default value is 100.

getServiceChangePollInterval()

Gets the timeout on service change notification requests from the client to the gateway for all registered callbacks.

Remarks:The default value of this property is 120 seconds.

setClientFriendlyName(String clientFriendlyName)

Sets the client friendly name that will appear in Service Fabric traces for debugging.

Remarks: The default value is null and the client friendly name will automatically be generated as a UUID internally.

setConnectionInitializationTimeout(Duration connectionInitializationTimeout)

Sets the timeout after which, if the current gateway address does not respond with a valid connection, another different address is randomly selected from the gateway addresses collection.

Remarks:The default value of this property is 2 seconds. This property must be less than the value of the getServiceChangePollInterval() property.

setHealthOperationTimeout(Duration healthOperationTimeout)

Sets the timeout on health operation requests from the client to the gateway.

Remarks:The default value of this property is 120 seconds.

setHealthReportRetrySendInterval(Duration healthReportRetrySendInterval)

Sets the retry interval at which health reports that have not yet been acknowledged by the Health Manager are resent.

Remarks:The default value of this property is 30 seconds.

setHealthReportSendInterval(Duration healthReportSendInterval)

Sets the interval at which health reports are sent to Health Manager.

Remarks:The default value of this property is 30 seconds.

setKeepAliveInterval(Duration keepAliveInterval)

Sets the interval at which the FabricClient will ping the connected endpoint.

Remarks:The default value of this property is 0 seconds. This property can't be updated after the FabricClient is opened. Setting this property will throw a java.lang.IllegalArgumentException exception. FabricClient will continue pinging as long as it has pending operations.

setNotificationCacheUpdateTimeout(Duration notificationCacheUpdateTimeout)

Sets the timeout for updating the local cache in response to service notifications. The default value is 30 seconds.

setNotificationGatewayConnectionTimeout(Duration notificationGatewayConnectionTimeout)

Sets the timeout for running a re-connection protocol if the client has registered for service notifications. The default value is 30 seconds.

setPartitionLocationCacheBucketCount(long partitionLocationCacheBucketCount)

Sets the bucket count used by the client’s service resolution cache.

Remarks:The default value is 1024.

setPartitionLocationCacheLimit(long partitionLocationCacheLimit)

Sets the maximum number of cached location entries on the client.

Remarks:The default value of this property is 1000. This property is not updatable. Setting this property will throw a java.lang.IllegalArgumentException exception. When the cache limit is reached the oldest entries are discarded first. The default value is 100.

setServiceChangePollInterval(Duration serviceChangePollInterval)

Sets the timeout on service change notification requests from the client to the gateway for all registered callbacks.

Remarks:The default value of this property is 120 seconds.

适用于