public interface MessageProperties
Allows to set a property with the specified name
having the specified value
with the corresponding data type.
Note that if a property with the name
exists, it will be updated with value
.
Modifier and Type | Method and Description |
---|---|
boolean |
setPropertyAsBinary(String name,
byte[] value)
Sets a property with the specified
name having the specified value as an
array of bytes. |
boolean |
setPropertyAsBool(String name,
boolean value)
Sets a property with the specified
name having the specified value of the
type boolean . |
boolean |
setPropertyAsByte(String name,
byte value)
Sets a property with the specified
name having the specified value of the
type byte . |
boolean |
setPropertyAsInt32(String name,
int value)
Sets a property with the specified
name having the specified value of the
type int . |
boolean |
setPropertyAsInt64(String name,
long value)
Sets a property with the specified
name having the specified value of the
type long . |
boolean |
setPropertyAsShort(String name,
short value)
Sets a property with the specified
name having the specified value of the
type short . |
boolean |
setPropertyAsString(String name,
String value)
Sets a property with the specified
name having the specified value of the
type String . |
boolean setPropertyAsBool(String name, boolean value)
name
having the specified value
of the
type boolean
.name
- property namevalue
- property valuetrue
on success, and false
in case of failure.boolean setPropertyAsByte(String name, byte value)
name
having the specified value
of the
type byte
.name
- property namevalue
- property valuetrue
on success, and false
in case of failure.boolean setPropertyAsShort(String name, short value)
name
having the specified value
of the
type short
.name
- property namevalue
- property valuetrue
on success, and false
in case of failure.boolean setPropertyAsInt32(String name, int value)
name
having the specified value
of the
type int
.name
- property namevalue
- property valuetrue
on success, and false
in case of failure.boolean setPropertyAsInt64(String name, long value)
name
having the specified value
of the
type long
.name
- property namevalue
- property valuetrue
on success, and false
in case of failure.boolean setPropertyAsString(String name, String value)
name
having the specified value
of the
type String
.name
- property namevalue
- property valuetrue
on success, and false
in case of failure.boolean setPropertyAsBinary(String name, byte[] value)
name
having the specified value
as an
array of bytes.name
- property namevalue
- property valuetrue
on success, and false
in case of failure.Copyright © 2023 Bloomberg L.P.. All rights reserved.