|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConsumerTemplate
Template (named like Spring's TransactionTemplate & JmsTemplate
et al) for working with Camel and consuming Message
instances in an
Exchange
from an Endpoint
.
RuntimeCamelException
if consuming of
the Exchange
failed and an Exception occured. The getCause
method on RuntimeCamelException
returns the wrapper original caused
exception.
All the receiveBody methods will return the content according to this strategy
RuntimeCamelException
as stated above
Method Summary | ||
---|---|---|
Exchange |
receive(Endpoint endpoint)
Receives from the endpoint, waiting until there is a response |
|
Exchange |
receive(Endpoint endpoint,
long timeout)
Receives from the endpoint, waiting until there is a response or the timeout occurs |
|
Exchange |
receive(String endpointUri)
Receives from the endpoint, waiting until there is a response |
|
Exchange |
receive(String endpointUri,
long timeout)
Receives from the endpoint, waiting until there is a response or the timeout occurs |
|
Object |
receiveBody(Endpoint endpoint)
Receives from the endpoint, waiting until there is a response |
|
|
receiveBody(Endpoint endpoint,
Class<T> type)
Receives from the endpoint, waiting until there is a response |
|
Object |
receiveBody(Endpoint endpoint,
long timeout)
Receives from the endpoint, waiting until there is a response or the timeout occurs |
|
|
receiveBody(Endpoint endpoint,
long timeout,
Class<T> type)
Receives from the endpoint, waiting until there is a response or the timeout occurs |
|
Object |
receiveBody(String endpointUri)
Receives from the endpoint, waiting until there is a response |
|
|
receiveBody(String endpointUri,
Class<T> type)
Receives from the endpoint, waiting until there is a response |
|
Object |
receiveBody(String endpointUri,
long timeout)
Receives from the endpoint, waiting until there is a response or the timeout occurs |
|
|
receiveBody(String endpointUri,
long timeout,
Class<T> type)
Receives from the endpoint, waiting until there is a response or the timeout occurs |
|
Object |
receiveBodyNoWait(Endpoint endpoint)
Receives from the endpoint, not waiting for a response if non exists. |
|
|
receiveBodyNoWait(Endpoint endpoint,
Class<T> type)
Receives from the endpoint, not waiting for a response if non exists. |
|
Object |
receiveBodyNoWait(String endpointUri)
Receives from the endpoint, not waiting for a response if non exists. |
|
|
receiveBodyNoWait(String endpointUri,
Class<T> type)
Receives from the endpoint, not waiting for a response if non exists. |
|
Exchange |
receiveNoWait(Endpoint endpoint)
Receives from the endpoint, not waiting for a response if non exists. |
|
Exchange |
receiveNoWait(String endpointUri)
Receives from the endpoint, not waiting for a response if non exists. |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Method Detail |
---|
Exchange receive(String endpointUri)
endpointUri
- the endpoint to receive from
Exchange receive(Endpoint endpoint)
endpoint
- the endpoint to receive from
Exchange receive(String endpointUri, long timeout)
endpointUri
- the endpoint to receive fromtimeout
- timeout in millis to wait for a response
Exchange receive(Endpoint endpoint, long timeout)
endpoint
- the endpoint to receive fromtimeout
- timeout in millis to wait for a response
Exchange receiveNoWait(String endpointUri)
endpointUri
- the endpoint to receive from
Exchange receiveNoWait(Endpoint endpoint)
endpoint
- the endpoint to receive from
Object receiveBody(String endpointUri)
endpointUri
- the endpoint to receive from
Object receiveBody(Endpoint endpoint)
endpoint
- the endpoint to receive from
Object receiveBody(String endpointUri, long timeout)
endpointUri
- the endpoint to receive fromtimeout
- timeout in millis to wait for a response
Object receiveBody(Endpoint endpoint, long timeout)
endpoint
- the endpoint to receive fromtimeout
- timeout in millis to wait for a response
Object receiveBodyNoWait(String endpointUri)
endpointUri
- the endpoint to receive from
Object receiveBodyNoWait(Endpoint endpoint)
endpoint
- the endpoint to receive from
<T> T receiveBody(String endpointUri, Class<T> type)
endpointUri
- the endpoint to receive fromtype
- the expected response type
<T> T receiveBody(Endpoint endpoint, Class<T> type)
endpoint
- the endpoint to receive fromtype
- the expected response type
<T> T receiveBody(String endpointUri, long timeout, Class<T> type)
endpointUri
- the endpoint to receive fromtimeout
- timeout in millis to wait for a responsetype
- the expected response type
<T> T receiveBody(Endpoint endpoint, long timeout, Class<T> type)
endpoint
- the endpoint to receive fromtimeout
- timeout in millis to wait for a responsetype
- the expected response type
<T> T receiveBodyNoWait(String endpointUri, Class<T> type)
endpointUri
- the endpoint to receive fromtype
- the expected response type
<T> T receiveBodyNoWait(Endpoint endpoint, Class<T> type)
endpoint
- the endpoint to receive fromtype
- the expected response type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |