#include <blpapi_resolutionlist.h>
Contains a list of topics that require resolution.
Created from topic strings or from TopicSubscribed messages This is passed to a resolve() call or resolveAsync() call on a ProviderSession. It is updated and returned by the resolve() call.
See Component blpapi_resolutionlist
◆ Status
| Enumerator |
|---|
| UNRESOLVED | Not yet resolved.
|
| RESOLVED | Resolved successfully.
|
| RESOLUTION_FAILURE_BAD_SERVICE | There is a problem with the resolution service. Contact service owners. See ResolutionFailure message for more details.
|
| RESOLUTION_FAILURE_SERVICE_AUTHORIZATION_FAILED | Failed to access resolution service. See ResolutionFailure message for more details.
|
| RESOLUTION_FAILURE_BAD_TOPIC | Either the resolution request irrecoverably failed, or the resolution service rejected this topic. See ResolutionFailure message for more details.
|
| RESOLUTION_FAILURE_TOPIC_AUTHORIZATION_FAILED | Currently unused.
|
◆ ResolutionList() [1/2]
◆ ResolutionList() [2/2]
◆ ~ResolutionList()
◆ add() [1/2]
Add the specified topic to this list, optionally specifying a correlationId. Returns 0 on success or negative number on failure. After a successful call to add() the status for this entry is UNRESOLVED_TOPIC.
◆ add() [2/2]
Add the topic contained in the specified TopicSubscribed message to this list, optionally specifying a correlationId. Returns 0 on success or a negative number on failure. After a successful call to add() the status for this entry is UNRESOLVED_TOPIC.
◆ addAttribute()
| int addAttribute |
( |
const Name & |
attribute | ) |
|
DEPRECATED: Attributes are no longer supported.
Add the specified attribute to the list of attributes requested during resolution for each topic in this ResolutionList. Returns 0 on success or a negative number on failure.
◆ attribute()
DEPRECATED: Attributes are no longer supported.
Returns the value for the specified attribute of the entry in this ResolutionList identified by the specified correlationId. The Element returned may be empty if the resolution service cannot provide the attribute. If correlationId does not identify an entry in this ResolutionList or if the status of the entry identified by correlationId is not RESOLVED an exception is thrown.
◆ attributeAt()
| Element attributeAt |
( |
const Name & |
attribute, |
|
|
size_t |
index |
|
) |
| const |
DEPRECATED: Attributes are no longer supported.
Returns the value for the specified attribute of the specified indexth entry in this ResolutionList. The Element returned may be empty if the resolution service cannot provide the attribute. If index >= size() or if the status of the indexth entry is not RESOLVED an exception is thrown.
◆ correlationIdAt()
◆ extractAttributeFromResolutionSuccess()
| Element extractAttributeFromResolutionSuccess |
( |
Message const & |
message, |
|
|
Name const & |
attribute |
|
) |
| |
|
static |
DEPRECATED: Attributes are no longer supported.
Return the value of the value in the specified message which represents the specified attribute. The message must be a message of type "RESOLUTION_SUCCESS". The attribute should be an attribute that was requested using addAttribute() on the ResolutionList passed to the resolve() or resolveAsync() that caused this RESOLUTION_SUCCESS message. If the attribute is not present an empty Element is returned.
◆ impl() [1/2]
◆ impl() [2/2]
◆ message()
Returns the value of the message received during resolution of the topic identified by the specified correlationId. If correlationId does not identify an entry in this ResolutionList or if the status of the entry identify by correlationId is not RESOLVED an exception is thrown.
The message returned can be used when creating an instance of Topic.
◆ messageAt()
| Message const messageAt |
( |
size_t |
index | ) |
const |
|
virtual |
Returns the value of the message received during resolution of the specified indexth entry in this ResolutionList. If index >= size() or if the status of the indexth entry is not RESOLVED an exception is thrown.
The message returned can be used when creating an instance of Topic.
◆ size()
Returns the number of entries in this list.
◆ status()
Returns the status of the entry in this ResolutionList identified by the specified correlationId. This may be UNRESOLVED, RESOLVED, RESOLUTION_FAILURE_BAD_SERVICE, RESOLUTION_FAILURE_SERVICE_AUTHORIZATION_FAILED RESOLUTION_FAILURE_BAD_TOPIC, RESOLUTION_FAILURE_TOPIC_AUTHORIZATION_FAILED. If the correlationId does not identify an entry in this ResolutionList then an exception is thrown.
◆ statusAt()
| int statusAt |
( |
size_t |
index | ) |
const |
|
virtual |
Returns the status of the specified indexth entry in this ResolutionList. This may be UNRESOLVED, RESOLVED, RESOLUTION_FAILURE_BAD_SERVICE, RESOLUTION_FAILURE_SERVICE_AUTHORIZATION_FAILED RESOLUTION_FAILURE_BAD_TOPIC, RESOLUTION_FAILURE_TOPIC_AUTHORIZATION_FAILED. If index >= size() an exception is thrown.
◆ topicString()
| const char * topicString |
( |
const CorrelationId & |
correlationId | ) |
const |
|
virtual |
Returns a pointer to the topic of the entry identified by the specified correlationId. If the correlationId does not identify an entry in this ResolutionList then an exception is thrown.
◆ topicStringAt()
| const char * topicStringAt |
( |
size_t |
index | ) |
const |
|
virtual |
Returns a pointer to the topic of the specified indexth entry. If index >= size() an exception is thrown.
The documentation for this class was generated from the following file: