-
- All Implemented Interfaces:
public interface TriggeredPublisher<TInput extends Object, TOutput extends Object>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTriggeredPublisher.Companion
-
Method Summary
Modifier and Type Method Description abstract Publisher<TOutput>produce(List<TInput> input)Given an input of type TInput create a cold Publisher that will produce a Publisher of type TOutput of n elements that maps to the size of the input List of TInput order is important so make sure to produce elements in the same order of input Unittrigger(List<BatchableTransaction<TInput, TOutput>> batchableTransactions, TransactionBatcherCache cache)Attempts to collect values from cache first and then produceExample: if TriggeredPublisher is of type and cache resolves 1, null, 3, null, 5, 6 we will attempt to produce elements for index 1 and 3 when produce stream completes we will complete futures from either values resolved from cache or from produce -
-
Method Detail
-
trigger
Unit trigger(List<BatchableTransaction<TInput, TOutput>> batchableTransactions, TransactionBatcherCache cache)
Attempts to collect values from cache first and then produce
Example: if TriggeredPublisher is of type and cache resolves 1, null, 3, null, 5, 6 we will attempt to produce elements for index 1 and 3 when produce stream completes we will complete futures from either values resolved from cache or from produce
-
-
-
-