public final class MessageProperties extends Object
CorrelationID, or timestamp.| Constructor and Description |
|---|
MessageProperties()
Creates a
MessageProperties with default values. |
| Modifier and Type | Method and Description |
|---|---|
MessageProperties |
setCorrelationId(CorrelationID correlationId)
Equivalent to
setCorrelationIds(java.util.List<com.bloomberglp.blpapi.CorrelationID>) with one CorrelationID. |
MessageProperties |
setCorrelationIds(List<CorrelationID> correlationIds)
Sets the
CorrelationID property. |
MessageProperties |
setRecapType(Message.Recap recapType,
Message.Fragment fragmentType)
Sets the
Message.Recap and Message.Fragment properties. |
MessageProperties |
setRequestId(String requestId)
Sets the
requestId property. |
MessageProperties |
setService(Service service)
Sets the
service property. |
MessageProperties |
setTimeReceived(Datetime timeReceived)
Sets the time received property.
|
public MessageProperties()
MessageProperties with default values. Default
value for CorrelationID property is an empty list. Default
value for Message.Recap property is Message.Recap.NONE. Default value
for Message.Fragment property is Message.Fragment.NONE.
Default Value for Service, timeReceived
or requestId is null.public MessageProperties setCorrelationIds(List<CorrelationID> correlationIds) throws IllegalArgumentException
CorrelationID property.correlationIds - the CorrelationIDs to be added.IllegalArgumentExceptionpublic MessageProperties setCorrelationId(CorrelationID correlationId) throws IllegalArgumentException
setCorrelationIds(java.util.List<com.bloomberglp.blpapi.CorrelationID>) with one CorrelationID.correlationId - IllegalArgumentExceptionpublic MessageProperties setRecapType(Message.Recap recapType, Message.Fragment fragmentType) throws IllegalArgumentException
Message.Recap and Message.Fragment properties.recapType - fragmentType - IllegalArgumentExceptionpublic MessageProperties setTimeReceived(Datetime timeReceived) throws IllegalArgumentException
timeReceived - represents the timestamp of the received message.IllegalArgumentExceptionpublic MessageProperties setService(Service service) throws IllegalArgumentException
service property.service - IllegalArgumentExceptionpublic MessageProperties setRequestId(String requestId) throws IllegalArgumentException
requestId property.requestId - IllegalArgumentExceptionCopyright © 2021 Bloomberg L.P.. All rights reserved.