FabricClientSettings Class
- java.
lang. Object - system.
fabric. FabricClientSettings
- system.
public class FabricClientSettings
Represents the configuration settings for the FabricClient class.
Constructor Summary
Constructor | Description |
---|---|
FabricClientSettings() |
Creates an Instance of system.fabric.FabricClientSettings |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
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. |
Duration |
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. |
Duration |
getHealthOperationTimeout()
Gets the timeout on health operation requests from the client to the gateway.
Remarks:The default value of this property is 120 seconds. |
Duration |
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. |
Duration |
getHealthReportSendInterval()
Gets the interval at which health reports are sent to Health Manager.
Remarks:The default value of this property is 30 seconds. |
Duration |
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. |
Duration |
getNotificationCacheUpdateTimeout()
Gets the timeout for updating the local cache in response to service notifications. The default value is 30 seconds. |
Duration |
getNotificationGatewayConnectionTimeout()
Gets the timeout for running a re-connection protocol if the client has registered for service notifications. The default value is 30 seconds. |
long |
getPartitionLocationCacheBucketCount()
Gets the bucket count used by the client’s service resolution cache.
Remarks:The default value is 1024. |
long |
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. |
Duration |
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. |
void |
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. |
void |
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. |
void |
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. |
void |
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. |
void |
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. |
void |
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. |
void |
setNotificationCacheUpdateTimeout(Duration notificationCacheUpdateTimeout)
Sets the timeout for updating the local cache in response to service notifications. The default value is 30 seconds. |
void |
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. |
void |
setPartitionLocationCacheBucketCount(long partitionLocationCacheBucketCount)
Sets the bucket count used by the client’s service resolution cache.
Remarks:The default value is 1024. |
void |
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. |
void |
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. |
Constructor Details
FabricClientSettings
public FabricClientSettings()
Creates an Instance of system.fabric.FabricClientSettings
Method Details
getClientFriendlyName
public String 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.
Returns:
getConnectionInitializationTimeout
public Duration 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.
Returns:
getHealthOperationTimeout
public Duration getHealthOperationTimeout()
Gets the timeout on health operation requests from the client to the gateway.
Remarks:The default value of this property is 120 seconds.
Returns:
getHealthReportRetrySendInterval
public Duration 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.
Returns:
getHealthReportSendInterval
public Duration getHealthReportSendInterval()
Gets the interval at which health reports are sent to Health Manager.
Remarks:The default value of this property is 30 seconds.
Returns:
getKeepAliveInterval
public Duration 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.
Returns:
getNotificationCacheUpdateTimeout
public Duration getNotificationCacheUpdateTimeout()
Gets the timeout for updating the local cache in response to service notifications. The default value is 30 seconds.
Returns:
getNotificationGatewayConnectionTimeout
public Duration getNotificationGatewayConnectionTimeout()
Gets the timeout for running a re-connection protocol if the client has registered for service notifications. The default value is 30 seconds.
Returns:
getPartitionLocationCacheBucketCount
public long getPartitionLocationCacheBucketCount()
Gets the bucket count used by the client’s service resolution cache.
Remarks:The default value is 1024.
Returns:
getPartitionLocationCacheLimit
public long 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.
Returns:
getServiceChangePollInterval
public Duration 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.
Returns:
setClientFriendlyName
public void 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.
Parameters:
setConnectionInitializationTimeout
public void 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.
Parameters:
setHealthOperationTimeout
public void 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.
Parameters:
setHealthReportRetrySendInterval
public void 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.
Parameters:
setHealthReportSendInterval
public void 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.
Parameters:
setKeepAliveInterval
public void 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.
Parameters:
setNotificationCacheUpdateTimeout
public void setNotificationCacheUpdateTimeout(Duration notificationCacheUpdateTimeout)
Sets the timeout for updating the local cache in response to service notifications. The default value is 30 seconds.
Parameters:
setNotificationGatewayConnectionTimeout
public void 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.
Parameters:
setPartitionLocationCacheBucketCount
public void setPartitionLocationCacheBucketCount(long partitionLocationCacheBucketCount)
Sets the bucket count used by the client’s service resolution cache.
Remarks:The default value is 1024.
Parameters:
setPartitionLocationCacheLimit
public void 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.
Parameters:
setServiceChangePollInterval
public void 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.
Parameters: