public class ReactiveCamel
extends java.lang.Object
Constructor and Description |
---|
ReactiveCamel(CamelContext camelContext) |
Modifier and Type | Method and Description |
---|---|
protected <T> rx.Observable<T> |
createEndpointObservable(Endpoint endpoint,
rx.util.functions.Func1<Exchange,T> converter)
Returns a newly created
Observable given a function which converts
the Exchange from the Camel consumer to the required type |
Endpoint |
endpoint(java.lang.String endpointUri) |
CamelContext |
getCamelContext() |
<T> void |
sendTo(rx.Observable<T> observable,
Endpoint endpoint)
Sends events on the given
Observable to the given camel endpoint |
<T> void |
sendTo(rx.Observable<T> observable,
java.lang.String endpointUri)
Sends events on the given
Observable to the given camel endpoint |
rx.Observable<Message> |
toObservable(Endpoint endpoint)
Returns an
< org.apache.camel.Message > to allow the messages sent on the endpoint
to be processed using Reactive Extensions |
<T> rx.Observable<T> |
toObservable(Endpoint endpoint,
java.lang.Class<T> bodyType)
Returns an
for the messages with their payload converted to the given type
to allow the messages sent on the endpoint
to be processed using Reactive Extensions |
rx.Observable<Message> |
toObservable(java.lang.String uri)
Returns an
< org.apache.camel.Message > to allow the messages sent on the endpoint
to be processed using Reactive Extensions |
<T> rx.Observable<T> |
toObservable(java.lang.String uri,
java.lang.Class<T> bodyType)
Returns an
for the messages with their payload converted to the given type
to allow the messages sent on the endpoint
to be processed using Reactive Extensions |
public ReactiveCamel(CamelContext camelContext)
public rx.Observable<Message> toObservable(java.lang.String uri)
< org.apache.camel.Message >
to allow the messages sent on the endpoint
to be processed using Reactive Extensionspublic <T> rx.Observable<T> toObservable(java.lang.String uri, java.lang.Class<T> bodyType)
for the messages with their payload converted to the given type
to allow the messages sent on the endpoint
to be processed using Reactive Extensionspublic rx.Observable<Message> toObservable(Endpoint endpoint)
< org.apache.camel.Message >
to allow the messages sent on the endpoint
to be processed using Reactive Extensionspublic <T> rx.Observable<T> toObservable(Endpoint endpoint, java.lang.Class<T> bodyType)
for the messages with their payload converted to the given type
to allow the messages sent on the endpoint
to be processed using Reactive Extensionspublic <T> void sendTo(rx.Observable<T> observable, java.lang.String endpointUri)
Observable
to the given camel endpointpublic <T> void sendTo(rx.Observable<T> observable, Endpoint endpoint)
Observable
to the given camel endpointpublic CamelContext getCamelContext()
public Endpoint endpoint(java.lang.String endpointUri)
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.