org.apache.camel.rx.support
Class EndpointSubscribeFunc<T>

java.lang.Object
  extended by org.apache.camel.rx.support.EndpointSubscribeFunc<T>
All Implemented Interfaces:
rx.functions.Action, rx.functions.Action1<rx.Subscriber<? super T>>, rx.functions.Function, rx.Observable.OnSubscribe<T>, rx.Observable.OnSubscribeFunc<T>

public class EndpointSubscribeFunc<T>
extends Object
implements rx.Observable.OnSubscribeFunc<T>, rx.Observable.OnSubscribe<T>


Constructor Summary
EndpointSubscribeFunc(org.apache.camel.Endpoint endpoint, rx.util.functions.Func1<org.apache.camel.Exchange,T> converter)
           
 
Method Summary
 void call(rx.Subscriber<? super T> subscriber)
           
 rx.Subscription onSubscribe(rx.Observer<? super T> observer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointSubscribeFunc

public EndpointSubscribeFunc(org.apache.camel.Endpoint endpoint,
                             rx.util.functions.Func1<org.apache.camel.Exchange,T> converter)
Method Detail

onSubscribe

public rx.Subscription onSubscribe(rx.Observer<? super T> observer)
Specified by:
onSubscribe in interface rx.Observable.OnSubscribeFunc<T>

call

public void call(rx.Subscriber<? super T> subscriber)
Specified by:
call in interface rx.functions.Action1<rx.Subscriber<? super T>>


Apache Camel