Click or drag to resize
SessionOptions Class
To use non-default options on a Session, create a SessionOptions instance and set the required options and then supply it when creating a Session.
Inheritance Hierarchy
SystemObject
  Bloomberglp.BlpapiSessionOptions

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.13.2.1
Syntax
[SerializableAttribute]
public class SessionOptions

The SessionOptions type exposes the following members.

Constructors
  NameDescription
Public methodSessionOptions
Construct a SessionOption with well defined defaults for various options
Top
Properties
  NameDescription
Public propertyAllowMultipleCorrelatorsPerMsg
Gets or sets the allow multiple correlators per message flag. The default is false.
Public propertyAuthenticationOptions
Gets or sets the authentication options.
Public propertyAutoRestartOnDisconnection
Gets or sets the auto restart flag. The default is false.
Public propertyClientMode
Public propertyConnectTimeout
Gets or sets the connection timeout in ms. The default value is 120000 ms.
Public propertyDefaultKeepAliveInactivityTime
Gets or sets the default keep alive inactivity time in ms. The default value is 20000 ms.
Public propertyDefaultKeepAliveResponseTimeout
Gets or sets the keep alive response time in ms. The default value is 5000 ms.
Public propertyDefaultSubscriptionService
Gets or sets the default subscription service. The default is "//blp/mktdata"
Public propertyDefaultTopicPrefix
Gets or sets the default topic prefix. The default is "ticker/"
Public propertyKeepaliveEnabled
Gets or sets the keep alive enable flag. The default value is true.
Public propertyMaxEventQueueSize
Max queue size for events.
Public propertyMaxOutstandingRequests
Return max outstanding requests.
Public propertyMaxPendingRequests
Max pending requests.
Public propertyMaxSendCacheSize
Gets or sets the max send cache size. The default value is 128MB.
Public propertyNumStartAttempts
Gets or sets the max start attempts. The default value is server address count ServerAddresses.
Public propertyRecordSubscriptionDataReceiveTimes
Gets or sets if the receipt time (accessed via TimeReceived) should be recorded for subscription data messages.
Public propertyServerAddresses
Gets or Sets the list of server address. Behavior is undefined if the specified 'value' contains any serverAddress whose hostname is an empty string.
Public propertyServerHost
Gets or sets the API server host of the first element in the server list. The default is "127.0.0.1". For setter, behavior is undefined if the specified 'value' is an empty string.
Public propertyServerPort
Gets or sets the API server port of the first element in the server list. The default is 8194.
Public propertyServiceCheckTimeout
Gets or sets the service check timeout in ms. The default value is 60000 ms.
Public propertyServiceDownloadTimeout
Gets or sets the service download timeout in ms. The default value is 120000 ms.
Public propertySlowConsumerWarningHiWaterMark
Gets or sets the slow consumer warning high water mark limit regarding to MaxSendCacheSize. The default is 0.75.
Public propertySlowConsumerWarningLoWaterMark
Gets or sets the slow consumer warning low water mark limit regarding to MaxSendCacheSizeMaxSendCacheSize. The default is 0.50.
Public propertyTlsOptions
Gets or sets TlsOptions to use for establishing secure connection. By default its null.
Top
Methods
Remarks
Currently the following options are supported:
OptionDescription
ServerHostThe hostname or the ip address of where the ServerAPI is running
ServerPortThe port number of the ServerAPI process
MaxSendCacheSizeMaximum number of bytes that will be cached by the Session before requests will fail.
MaxEventQueueSizeThe maximum number of events that can be buffered by the Session. The value of MaxEventQueueSize must be greater than zero.
MaxPendingRequestsThe maximum number of requests that can be pending
AllowMultipleCorrelatorsPerMsgIf a message is to be delivered for multiple correlators then deliver one message with all correlators folded into that one message
SlowConsumerWarningHiWaterMarkSet the fraction of 'MaxEventQueueSize' at which "slow consumer" events will be generated. A warning event will be generated when the number of outstanding undelivered events passes above 'SlowConsumerWarningHiWaterMark * MaxEventQueueSize'. The following is applicable 0.0 < slowConsumerWarningHiWaterMark <= 1.0. Further, at the time that Session.Start() is called, it must be the case that 'SlowConsumerWarningLoWaterMark * MaxEventQueueSize' < 'SlowConsumerWarningHiWaterMark * MaxEventQueueSize'.
SlowConsumerWarningLoWaterMarkSet the fraction of 'MaxEventQueueSize' at which "slow consumer cleared" events will be generated. A warning cleared event will be generated when the number of outstanding undelivered events drops below 'SlowConsumerWarningLoWaterMark * MaxEventQueueSize'. The following is applicable 0.0 <= SlowConsumerWarningLoWaterMark < 1.0. Further, at the time that Session.Start() is called, it must be the case that 'SlowConsumerWarningLoWaterMark * MaxEventQueueSize' < 'SlowConsumerWarningHiWaterMark * MaxEventQueueSize'.
DefaultSubscriptionServiceThe name of the service to be used by default for subscriptions.
DefaultTopicPrefixThe name of the topic prefix to be used for subscriptions if one is not provided.
ConnectTimeoutTimeout in milliseconds for session to establish a connection
ClientMode See SessionOptionsClientModeType.
DefaultKeepAliveInactivityTime Amount of time in milliseconds without any read activity on the connection before the library will ping the peer (requires compatible server). Also see DefaultKeepAliveResponseTimeout.
DefaultKeepAliveResponseTimeout Timeout for the ping response in milliseconds. The peer will be declared "dead" if no ping response (or other data) is received within response timeout interval after the ping (requires compatible server). Also see DefaultKeepAliveInactivityTime.
KeepAliveEnabled Whether all keep-alive mechanisms, both from the client to the server and from the server to the client, should be enabled.
RecordSubscriptionDataReceiveTimes Should the receipt time (accessed via TimeReceived be recorded for subscription data messages.
TlsOptions Client credentials and trusted certificates to establish secure connection. By default plaintext connection is used. See TlsOptions.
ServiceCheckTimeoutTimeout, in milliseconds, for checking what version of the schema should be downloaded when opening a new service. The timeout value must be a positive integer. The default timeout is 60,000 milliseconds.
ServiceDownloadTimeoutTimeout, in milliseconds, for downloading the service schema when opening a new service. The timeout value must be a positive integer. The default timeout is 120,000 milliseconds.
Thread Safety
Instance members of this type are not safe for multi-threaded operations.
See Also