public static interface RecordTopicDetails.Builder extends TopicDetails.Builder<RecordTopicDetails.Builder,RecordTopicDetails>
Modifier and Type | Method and Description |
---|---|
RecordTopicDetails.Builder |
emptyFieldValue(String emptyValue)
Sets the value to be used to represent empty fields in delta content
generated by the topic.
|
RecordTopicDetails.Builder |
metadata(MContent metadata)
Sets the content metadata to be used for the topic.
|
build, property, reference, reset, tidyOnUnsubscribe
RecordTopicDetails.Builder metadata(MContent metadata) throws IllegalArgumentException
If no metadata is explicitly supplied,
RecordTopicDetails.Schema.DEFAULT_METADATA
is assumed.
metadata
- the content metadataIllegalArgumentException
- if metadata
is nullRecordTopicDetails.Builder emptyFieldValue(String emptyValue) throws IllegalArgumentException
This allows it to be possible for a client receiving a delta to distinguish between a field that had not changed and a field that has changed to become empty.
This will be used in generated deltas.
If not set, empty fields will be rendered as zero length Strings and thus be indistinguishable from unchanged fields.
emptyValue
- the empty value which can be any String, ideally a
single character. The value should be a value that would not
occur normally in a field, thus a non visible character is
ideal. It is recommended that
Record.EMPTY_FIELD_STRING
is used as it is a special
character that is rendered when messages are displayed. The
value may not contain reserved character values (so avoid 0x00
to 0x09). The value may not be nullIllegalArgumentException
- if emptyValue
is nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.