This topic type will be removed in a future release
@Deprecated public interface PagedStringUnorderedUpdateFactory extends PagedUnorderedUpdateFactory
unordered
paged string
topics.
Instances of this factory can be obtained from the TopicUpdateControl
feature using TopicUpdateControl.updateFactory(Class)
, for example:
TopicUpdateControl updateControl = session.feature(TopicUpdateControl.class);
PagedStringUnorderedUpdateFactory factory = updateControl.updateFactory(PagedStringUnorderedUpdateFactory.class);
Modifier and Type | Method and Description |
---|---|
Update |
add(Collection<String> lines)
Deprecated.
Creates an update to add one or more lines of data to the end of the
paged topic.
|
Update |
add(String... lines)
Deprecated.
Creates an update to add one or more lines of data to the end of the
paged topic.
|
Update |
insert(int index,
Collection<String> lines)
Deprecated.
Creates an update to insert one or more lines of data into the paged
topic at a specified index.
|
Update |
insert(int index,
String... lines)
Deprecated.
Creates an update to insert one or more lines of data into the paged
topic at a specified index.
|
Update |
update(int index,
String line)
Deprecated.
Create an update which will change a single line of data within the paged
topic.
|
remove, remove
removeAll
Update add(String... lines) throws IllegalArgumentException
At the server all lines are added to the end of the data in a single operation causing a single notification to all interested clients.
lines
- the lines to addIllegalArgumentException
- if lines
is null or emptyUpdate add(Collection<String> lines) throws IllegalArgumentException
As add(String...)
but specifying the lines as a collection.
lines
- the lines to addIllegalArgumentException
- if lines
is null or emptyUpdate insert(int index, String... lines) throws IllegalArgumentException
At the server all lines are inserted into the data in a single operation causing a single notification to all interested clients.
index
- the index to insert the lines at. If this is 0 , the lines
will be inserted at the start of the data. If a negative value is
supplied, 0 is assumed. If the index is equal to or greater than
the number of lines of data, the lines are added to the endlines
- the lines of data to addIllegalArgumentException
- if lines
is null or emptyUpdate insert(int index, Collection<String> lines) throws IllegalArgumentException
As insert(int, String...)
but specifying the lines as a
collection.
index
- the index to insert the lines at. If this is 0, the lines
will be inserted at the start of the data. If a negative value is
supplied, 0 is assumed. If the index is equal to or greater than
the number of lines of data, the lines are added to the endlines
- the lines of data to insertIllegalArgumentException
- if lines
is null or emptyUpdate update(int index, String line) throws IndexOutOfBoundsException, IllegalArgumentException
The line at the specified index is replaced by the specified line. If the index is equal to the current number of lines, the line is added to the end of the data, However, if the index is greater than the current number of lines, an error will be reported on the callback.
index
- the index of the line to replaceline
- the new line dataIndexOutOfBoundsException
- if the index is negativeIllegalArgumentException
- if line
is nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.