RequestTemplate Interface |
Namespace: Bloomberglp.Blpapi
The RequestTemplate type exposes the following members.
Request templates are obtained from a Session and should be always used with the session that creates the template. When a session is terminated, any request templates associated with that session become invalid. Results of sending or canceling of invalid requests templates is undefined.
In order to send a request represented by a template, the sendRequest(RequestTemplate, CorrelationID) method should be called with the 'RequestTemplate' object passed as the first argument.
All handles should be closed by calling close method for releasing resources when a request template is no longer needed.
Check createSnapshotRequestTemplate(String, CorrelationID, Identity) for details about creation and management of snapshot request templates.
Usage example:RequestTemplate requestTemplate
= session.createSnapshotRequestTemplate(
"//blp/mktdata/ticker/IBM US Equity,
statusCorrelationId,
identity);
session.sendRequestTemplate(requestTemplate);
requestTemplate.close();