FabricTransportRemotingListenerSettings.loadFrom 方法

定义

重载

loadFrom(String sectionName)

Loads the FabricTransport settings from a section specified in the service settings configuration file - settings.xml

Remarks: The following are the parameter names that should be provided in the configuration file,to be recognizable by service fabric to load the transport settings. 1. MaxQueueSize - FabricTransportSettings#getMaxQueueSize()value in long. 2. MaxMessageSize - FabricTransportSettings#getMaxMessageSize()value in bytes. 3. MaxConcurrentCalls - FabricTransportSettings#getMaxConcurrentCalls()value in long. 4. SecurityCredentials - FabricTransportSettings#getSecurityCredentials() value. 5. OperationTimeoutInSeconds - FabricTransportSettings#getOperationTimeout() value in seconds. 6. KeepAliveTimeoutInSeconds - FabricTransportSettings#getKeepAliveTimeout() value in seconds.

loadFrom(String sectionName, String configPackageName)

Loads the FabricTransport settings from a section specified in the service settings configuration file - settings.xml

Remarks: The following are the parameter names that should be provided in the configuration file,to be recognizable by service fabric to load the transport settings. 1. MaxQueueSize - FabricTransportSettings#getMaxQueueSize()value in long. 2. MaxMessageSize - FabricTransportSettings#getMaxMessageSize()value in bytes. 3. MaxConcurrentCalls - FabricTransportSettings#getMaxConcurrentCalls()value in long. 4. SecurityCredentials - FabricTransportSettings#getSecurityCredentials() value. 5. OperationTimeoutInSeconds - FabricTransportSettings#getOperationTimeout() value in seconds. 6. KeepAliveTimeoutInSeconds - FabricTransportSettings#getKeepAliveTimeout() value in seconds.

loadFrom(String sectionName)

Loads the FabricTransport settings from a section specified in the service settings configuration file - settings.xml

Remarks: The following are the parameter names that should be provided in the configuration file,to be recognizable by service fabric to load the transport settings. 1. MaxQueueSize - FabricTransportSettings#getMaxQueueSize()value in long. 2. MaxMessageSize - FabricTransportSettings#getMaxMessageSize()value in bytes. 3. MaxConcurrentCalls - FabricTransportSettings#getMaxConcurrentCalls()value in long. 4. SecurityCredentials - FabricTransportSettings#getSecurityCredentials() value. 5. OperationTimeoutInSeconds - FabricTransportSettings#getOperationTimeout() value in seconds. 6. KeepAliveTimeoutInSeconds - FabricTransportSettings#getKeepAliveTimeout() value in seconds.

public static FabricTransportRemotingListenerSettings loadFrom(String sectionName)

参数

sectionName
String

Name of the section within the configuration file. if not found , it throws ArgumentException. If not specified, default name is "Config"

返回

FabricTransportListenerSettings

loadFrom(String sectionName, String configPackageName)

Loads the FabricTransport settings from a section specified in the service settings configuration file - settings.xml

Remarks: The following are the parameter names that should be provided in the configuration file,to be recognizable by service fabric to load the transport settings. 1. MaxQueueSize - FabricTransportSettings#getMaxQueueSize()value in long. 2. MaxMessageSize - FabricTransportSettings#getMaxMessageSize()value in bytes. 3. MaxConcurrentCalls - FabricTransportSettings#getMaxConcurrentCalls()value in long. 4. SecurityCredentials - FabricTransportSettings#getSecurityCredentials() value. 5. OperationTimeoutInSeconds - FabricTransportSettings#getOperationTimeout() value in seconds. 6. KeepAliveTimeoutInSeconds - FabricTransportSettings#getKeepAliveTimeout() value in seconds.

public static FabricTransportRemotingListenerSettings loadFrom(String sectionName, String configPackageName)

参数

sectionName
String

Name of the section within the configuration file. if not found , it throws ArgumentException.

configPackageName
String

Name of the configuration package. if not found Settings.xml in the configuration package path, it throws ArgumentException. If not specified, default name is "Config"

返回

FabricTransportListenerSettings

适用于