Interface PagedAsyncStreamCore<C,T,P extends Page<C,T>>
-
- Type Parameters:
C
- The continuation token type.T
- The type of element in the page.P
- The type of the page.
- All Superinterfaces:
AsyncStream<T>
public interface PagedAsyncStreamCore<C,T,P extends Page<C,T>> extends AsyncStream<T>
A sequence of elements in pages that can be enumerated asynchronously.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncStream<P>
byPage()
GetsAsyncStream
that enables enumerating the pages asynchronously.AsyncStream<P>
byPage(C startPageId)
GetsAsyncStream
that enables enumerating the pages asynchronously, starting from the page with the given idstartPageId
.AsyncStream<T>
from(C startPageId)
GetsAsyncStream
that enables enumerating the elements of pages asynchronously, starting from the page with the given idstartPageId
.void
getPage(java.lang.String pageId, BiConsumer<P,java.lang.Throwable> resultHandler)
Retrieve a page with given idpageId
.-
Methods inherited from interface com.azure.android.core.util.AsyncStream
forEach
-
-
-
-
Method Detail
-
byPage
AsyncStream<P> byPage()
GetsAsyncStream
that enables enumerating the pages asynchronously.- Returns:
- The
AsyncStream
of pages.
-
byPage
AsyncStream<P> byPage(C startPageId)
GetsAsyncStream
that enables enumerating the pages asynchronously, starting from the page with the given idstartPageId
.- Parameters:
startPageId
- The id of the page to start the enumeration from.- Returns:
- The
AsyncStream
of pages.
-
from
AsyncStream<T> from(C startPageId)
GetsAsyncStream
that enables enumerating the elements of pages asynchronously, starting from the page with the given idstartPageId
.- Parameters:
startPageId
- The id of the page to start the enumeration from.- Returns:
- The
AsyncStream
of page elements.
-
getPage
void getPage(java.lang.String pageId, BiConsumer<P,java.lang.Throwable> resultHandler)
Retrieve a page with given idpageId
. Anull
value forpageId
indicate the initial page.- Parameters:
pageId
- The id of the page to retrieve.resultHandler
- The handler to signal the retrieved page or any error during the page retrieval.
-
-