public interface ResultParser<T extends RequestResult>
Modifier and Type | Method and Description |
---|---|
void |
addMessage(com.bloomberglp.blpapi.Message msg)
Adds msg to the list of messages to parse
|
T |
getResult() |
T |
getResult(long timeout,
TimeUnit unit) |
void |
noMoreMessages()
signals that there are no more messages to expect from Bloomberg and parsing can be started
|
T getResult() throws InterruptedException
IllegalStateException
- if the noMoreMessages has not been called yetInterruptedException
- if the thread is interrupted before the result has been received and parsedcom.bloomberglp.blpapi.InvalidRequestException
- if the response returned by Bloomberg reports an error - this can typically
happen if
the request was malformed (which should not happen if this API is used properly) or the service is down.T getResult(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException
timeout
- the maximum time to waitunit
- the time unit of the timeout argumentIllegalStateException
- if the noMoreMessages has not been called yetInterruptedException
- if the thread is interrupted before the result has been received and parsedcom.bloomberglp.blpapi.InvalidRequestException
- if the response returned by Bloomberg reports an error - this can typically
happen if
the request was malformed (which should not happen if this API is used properly) or the service is down.TimeoutException
- if the specified waiting time elapses before the result could be computedvoid addMessage(com.bloomberglp.blpapi.Message msg)
msg
- a message received from Bloombergvoid noMoreMessages()
IllegalStateException
- if called more than onceCopyright © 2013. All Rights Reserved.