This topic type will be removed in a future release
@Deprecated public interface PagedStringOrderedUpdateFactory extends PagedUpdateFactory
paged string
topics.
An ordered paged string topic is one that has declared
or comparator
ordering
.
Instances of this factory can be obtained from the TopicUpdateControl
feature using TopicUpdateControl.updateFactory(Class)
, for example:
TopicUpdateControl updateControl = session.feature(TopicUpdateControl.class);
PagedStringOrderedUpdateFactory factory = updateControl.updateFactory(PagedStringOrderedUpdateFactory.class);
Modifier and Type | Method and Description |
---|---|
Update |
add(String line)
Deprecated.
Create an update that will add a line to the paged topic.
|
Update |
remove(String line)
Deprecated.
Create an update that will remove a line of data from the paged topic.
|
removeAll
Update add(String line) throws IllegalArgumentException
The line will be added at the position indicated by the
ordering policy
of the topic. Duplicates will be
handled according to the duplicates policy
indicated
for the topic.
line
- the line to addIllegalArgumentException
- if line
is nullUpdate remove(String line) throws IllegalArgumentException
The ordering policy
is used to locate a line that
matches the specified line and that line is then removed. If no match is
found, no action occurs. If there is more than one line that matches, the
line removed would depend upon the duplicates policy
.
line
- the line to removeIllegalArgumentException
- if line
is nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.