Class OutputDestination
java.lang.Object
org.springframework.cloud.stream.binder.test.OutputDestination
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Will clear all output destinations.booleanWill clear output destination with specified name.org.springframework.messaging.Message<byte[]> receive()Allows to accessMessages received by thisOutputDestination.org.springframework.messaging.Message<byte[]> receive(long timeout) Allows to accessMessages received by thisOutputDestination.org.springframework.messaging.Message<byte[]>
-
Constructor Details
-
OutputDestination
public OutputDestination()
-
-
Method Details
-
receive
-
clear
public void clear()Will clear all output destinations.- Since:
- 3.0.6
-
clear
Will clear output destination with specified name.- Parameters:
destinationName- the name of the output destination to be cleared.- Returns:
- true if attempt to clear specific destination is successful otherwise false.
- Since:
- 3.0.6
-
receive
public org.springframework.messaging.Message<byte[]> receive()Allows to accessMessages received by thisOutputDestination. This is a convenience method for cases when you only have one binding. For all other cases usereceive(long, String)method.- Returns:
- received message
-
receive
public org.springframework.messaging.Message<byte[]> receive(long timeout) Allows to accessMessages received by thisOutputDestination. This is a convenience method for cases when you only have one binding. For all other cases usereceive(long, String)method.- Parameters:
timeout- timeout for receiving message- Returns:
- received message
-