public class StreamStubMessages extends Object implements MessageVerifier<org.springframework.messaging.Message<?>>
| Constructor and Description |
|---|
StreamStubMessages(org.springframework.context.ApplicationContext context) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.messaging.Message<?> |
receive(String destination)
Receives the message from the given destination.
|
org.springframework.messaging.Message<?> |
receive(String destination,
long timeout,
TimeUnit timeUnit)
Receives the message from the given destination.
|
void |
send(org.springframework.messaging.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.
|
public StreamStubMessages(org.springframework.context.ApplicationContext context)
public <T> void send(T payload,
Map<String,Object> headers,
String destination)
MessageVerifiersend in interface MessageVerifier<org.springframework.messaging.Message<?>>public void send(org.springframework.messaging.Message<?> message,
String destination)
MessageVerifiersend in interface MessageVerifier<org.springframework.messaging.Message<?>>public org.springframework.messaging.Message<?> receive(String destination, long timeout, TimeUnit timeUnit)
MessageVerifierreceive in interface MessageVerifier<org.springframework.messaging.Message<?>>public org.springframework.messaging.Message<?> receive(String destination)
MessageVerifierreceive in interface MessageVerifier<org.springframework.messaging.Message<?>>Copyright © 2016–2018 Spring. All rights reserved.