public interface IExtractor<TYPE,ERROR extends Exception>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IExtractor.Entity<TYPE> |
static class |
IExtractor.Response<TYPE> |
| Modifier and Type | Method and Description |
|---|---|
default IExtractor.Response<TYPE> |
createResponse(List<IExtractor.Entity<TYPE>> entities,
String nextCursor,
boolean hasNext)
Utility to build a paginated response.
|
IExtractor.Response<TYPE> |
get(List<String> ids,
String cursor)
Get entities from the source system identified by the given ids.
|
IExtractor.Response<TYPE> |
get(String cursor)
Get entities from the source system since the given cursor.
|
IExtractor.Response<TYPE> get(String cursor) throws ERROR extends Exception
IExtractor.Response<TYPE> get(List<String> ids, String cursor) throws ERROR extends Exception
default IExtractor.Response<TYPE> createResponse(List<IExtractor.Entity<TYPE>> entities, String nextCursor, boolean hasNext)
Copyright © 2018 Irenical. All rights reserved.