Interface VirtualTransformer<T,R>
- Type Parameters:
T- the source value typeR- the result value type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface called by the
Flowable.virtualTransform(VirtualTransformer, java.util.concurrent.ExecutorService)
operator to generate any number of output values based of the current input of the upstream.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidtransform(T value, VirtualEmitter<R> emitter) Implement this method to generate any number of items viaVirtualEmitter.emit(Object).
-
Method Details
-
transform
Implement this method to generate any number of items viaVirtualEmitter.emit(Object).- Parameters:
value- the upstream valueemitter- the emitter to use to generate result value(s)- Throws:
Throwable- signaled asonErrorfor the downstream.
-