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