@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)
MessageVerifier
send
in interface MessageVerifier<org.apache.camel.Message>
public <T> void send(T payload, Map<String,Object> headers, String destination)
MessageVerifier
send
in interface MessageVerifier<org.apache.camel.Message>
public org.apache.camel.Message receive(String destination, long timeout, TimeUnit timeUnit)
MessageVerifier
receive
in interface MessageVerifier<org.apache.camel.Message>
public org.apache.camel.Message receive(String destination)
MessageVerifier
receive
in interface MessageVerifier<org.apache.camel.Message>
Copyright © 2016–2019 Spring. All rights reserved.