org.apache.camel.rx.support
Class ProcessorToObserver<T>
java.lang.Object
org.apache.camel.rx.support.ProcessorToObserver<T>
- All Implemented Interfaces:
- org.apache.camel.Processor
public class ProcessorToObserver<T>
- extends Object
- implements org.apache.camel.Processor
A Processor
which invokes an underling Observer
as messages
arrive using the given function to convert the Exchange
to the required
object
Constructor Summary |
ProcessorToObserver(rx.util.functions.Func1<org.apache.camel.Exchange,T> func,
rx.Observer<? super T> observer)
|
Method Summary |
void |
process(org.apache.camel.Exchange exchange)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessorToObserver
public ProcessorToObserver(rx.util.functions.Func1<org.apache.camel.Exchange,T> func,
rx.Observer<? super T> observer)
process
public void process(org.apache.camel.Exchange exchange)
throws Exception
- Specified by:
process
in interface org.apache.camel.Processor
- Throws:
Exception
Apache Camel