B
- the builder typeD
- the topic details typepublic static interface PagedTopicDetails.Builder<B extends TopicDetails.Builder<B,D>,D extends TopicDetails> extends TopicDetails.Builder<B,D>
Modifier and Type | Method and Description |
---|---|
B |
order(PagedTopicDetails.Attributes.Duplicates duplicatesPolicy,
String comparatorName)
Specifies
comparator ordering
is to be applied to the topic. |
B |
order(String comparatorName)
Specifies
comparator ordering
is to be applied to the topic. |
B |
unordered()
This specifies that the topic ordering should be set to
UNORDERED . |
build, property, reference, reset, tidyOnUnsubscribe
B order(String comparatorName) throws IllegalArgumentException
comparator
ordering
is to be applied to the topic.
This allows ordering to be specified which will be handled by a class at the server which is used to determine the order.
The class name should be the full class name of a Java class
available at the server which is either of generic type
String
or Record
depending upon the subtype. An
instance of this class will be instantiated at the server for the
topic to use for determining the line order.
Calling this method would replace any previously specified ordering policy.
A duplicates policy of NOT_ALLOWED
is
assumed.
comparatorName
- the full comparator class nameIllegalArgumentException
- if comparatorName
is null or
invalidB order(PagedTopicDetails.Attributes.Duplicates duplicatesPolicy, String comparatorName) throws IllegalArgumentException
comparator
ordering
is to be applied to the topic.
This allows ordering to be specified which will be handled by a class at the server which is used to determine the order.
The class name should be the full class name of a Java class
available at the server which is either of generic type
String
or Record
depending upon the subtype. An
instance of this class will be instantiated at the server for the
topic to use for determining the line order.
Calling this method would replace any previously specified ordering policy.
duplicatesPolicy
- the duplicate policy to use. If this is null,
NOT_ALLOWED
is assumedcomparatorName
- the full comparator class nameIllegalArgumentException
- if comparatorName
is null or
invalidCopyright © 2016 Push Technology Ltd. All Rights Reserved.