Interface IPushProgressListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Receives progress notifications as a bulk send's region slices complete.
A functional interface, so it may be supplied as a lambda. It is invoked by the engine as each region slice resolves, letting the caller show live progress for a large send ("region EU-C: 300 of 300 done; region IN-KA: 80 of 150 ...") rather than waiting for the whole send. It is optional; a send with a null listener simply reports nothing until the final result.
- Author:
- IIZI
Method Summary
Modifier and TypeMethodDescriptionvoidonSliceCompleted(IRoutingPlan.IRegionSlice slice, int completed, int total) Invoked when one region slice of a send has completed.
Method Details
onSliceCompleted
Invoked when one region slice of a send has completed.- Parameters:
slice- The slice that completed.completed- The number of subscriptions resolved so far across the whole send.total- The total number of subscriptions the send will resolve.