@Component public class CamelStubMessages extends Object implements MessageVerifier<org.apache.camel.Message>
| Constructor and Description |
|---|
CamelStubMessages(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Message |
receive(String destination)
Receives the message from the given destination.
|
org.apache.camel.Message |
receive(String destination,
long timeout,
TimeUnit timeUnit)
Receives the message from the given destination.
|
void |
send(org.apache.camel.Message message,
String destination)
Sends the message to the given destination.
|
<T> void |
send(T payload,
Map<String,Object> headers,
String destination)
Sends the given payload with headers, to the given destination.
|
@Autowired public CamelStubMessages(org.apache.camel.CamelContext context)
public void send(org.apache.camel.Message message,
String destination)
MessageVerifiersend in interface MessageVerifier<org.apache.camel.Message>public <T> void send(T payload,
Map<String,Object> headers,
String destination)
MessageVerifiersend in interface MessageVerifier<org.apache.camel.Message>public org.apache.camel.Message receive(String destination, long timeout, TimeUnit timeUnit)
MessageVerifierreceive in interface MessageVerifier<org.apache.camel.Message>public org.apache.camel.Message receive(String destination)
MessageVerifierreceive in interface MessageVerifier<org.apache.camel.Message>Copyright © 2016–2018 Spring. All rights reserved.