Module com.gluonhq.cloudlink.client
Class GluonCloudRemoteFunctionChunkedListDataReaderImpl<E>
- java.lang.Object
-
- com.gluonhq.impl.cloudlink.client.data.function.GluonCloudRemoteFunctionChunkedListDataReaderImpl<E>
-
- All Implemented Interfaces:
ListDataReader<E>
public class GluonCloudRemoteFunctionChunkedListDataReaderImpl<E> extends Object implements ListDataReader<E>
-
-
Constructor Summary
Constructors Constructor Description GluonCloudRemoteFunctionChunkedListDataReaderImpl(GluonObservableRemoteFunctionChunkedListImpl<E> observable, IncomingSseProcessor sseProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<E>
iterator()
Returns an iterator that is able to iterate over the read objects from the list.GluonObservableList<E>
newGluonObservableList()
Provide an instance of a GluonObservableList.
-
-
-
Constructor Detail
-
GluonCloudRemoteFunctionChunkedListDataReaderImpl
public GluonCloudRemoteFunctionChunkedListDataReaderImpl(GluonObservableRemoteFunctionChunkedListImpl<E> observable, IncomingSseProcessor sseProcessor)
-
-
Method Detail
-
newGluonObservableList
public GluonObservableList<E> newGluonObservableList()
Description copied from interface:ListDataReader
Provide an instance of a GluonObservableList. This method will be called byDataProvider.retrieveList(ListDataReader)
to get a GluonObservableList that can be populated. Most implementations will just return an instance of GluonObservableList itself. Note that it is perfectly valid to return existing instances of GluonObservableList.- Specified by:
newGluonObservableList
in interfaceListDataReader<E>
- Returns:
- an instance of GluonObservableList
-
iterator
public Iterator<E> iterator() throws IOException
Description copied from interface:ListDataReader
Returns an iterator that is able to iterate over the read objects from the list. This method will be called byDataProvider.retrieveList(ListDataReader)
to initiate the read process. The returned iterator will be used to populate the GluonObservableList that is returned in theListDataReader.newGluonObservableList()
method.- Specified by:
iterator
in interfaceListDataReader<E>
- Returns:
- an iterator that is able to read over the objects from the list
- Throws:
IOException
- when something went wrong during the process of reading the objects
-
-