Package org.consensusj.analytics.service
Interface RichListService<N extends Number & Comparable<? super N>,ID>
- Type Parameters:
N
- Numeric type for balancesID
- Type for currency identifiers (e.g. String, Omni Currency ID, etc)
public interface RichListService<N extends Number & Comparable<? super N>,ID>
Interface for reactive rich list service
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single
<TokenRichList<N, ID>> Return a single rich listorg.reactivestreams.Publisher
<TokenRichList<N, ID>> richListUpdates
(ID currencyID, int numEntries) Get a continuous stream of rich list updates
-
Method Details
-
richList
Return a single rich list- Parameters:
currencyID
- The currency IDnumEntries
- The requested number of entries in the list- Returns:
- An RxJava Single for lazy access to the response
-
richListUpdates
Get a continuous stream of rich list updates- Parameters:
currencyID
- The currency IDnumEntries
- The requested number of entries in each list- Returns:
- A Publisher for lazy access to the stream
-