Package org.yamcs.client.base
Class AbstractPage<RequestT extends com.google.protobuf.Message,ResponseT extends com.google.protobuf.Message,ItemT>
- java.lang.Object
-
- org.yamcs.client.base.AbstractPage<RequestT,ResponseT,ItemT>
-
-
Constructor Summary
Constructors Constructor Description AbstractPage(RequestT request, String repeatableField)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
fetch(RequestT request, Observer<ResponseT> observer)
CompletableFuture<Page<ItemT>>
future()
CompletableFuture<Page<ItemT>>
getNextPage()
ResponseT
getResponse()
boolean
hasNextPage()
Iterator<ItemT>
iterator()
Returns an iterator.protected List<ItemT>
mapRepeatableField(Object field)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
future
public CompletableFuture<Page<ItemT>> future()
-
getResponse
public ResponseT getResponse()
-
hasNextPage
public boolean hasNextPage()
- Specified by:
hasNextPage
in interfacePage<RequestT extends com.google.protobuf.Message>
-
getNextPage
public CompletableFuture<Page<ItemT>> getNextPage()
- Specified by:
getNextPage
in interfacePage<RequestT extends com.google.protobuf.Message>
-
-