Package com.ecom.winners.readers
Class RestApiItemReaderBuilder<T>
java.lang.Object
com.ecom.winners.readers.RestApiItemReaderBuilder<T>
- Type Parameters:
T
- generic for a mapping object.
- All Implemented Interfaces:
org.springframework.batch.item.ItemReader<List<T>>
public class RestApiItemReaderBuilder<T>
extends Object
implements org.springframework.batch.item.ItemReader<List<T>>
REST API item reader is a builder for creating an object of item reader functional
interface that fetches a page of
data from and API with the help of WebClients library and returns a List of T object for further
processing.
It Fetches data from a source, caches the data locally, and maps it to a generic object of type T.
It uses a predicate to end the fetching of data from the data source.
- See Also:
-
ItemReader
-
List
-
Constructor Summary
-
Method Summary