Class MessageChannelStreamListenerResultAdapter
java.lang.Object
org.springframework.cloud.stream.binding.MessageChannelStreamListenerResultAdapter
- All Implemented Interfaces:
StreamListenerResultAdapter<org.springframework.messaging.MessageChannel,org.springframework.messaging.MessageChannel>
public class MessageChannelStreamListenerResultAdapter
extends Object
implements StreamListenerResultAdapter<org.springframework.messaging.MessageChannel,org.springframework.messaging.MessageChannel>
- Author:
- Marius Bogoevici, Soby Chacko
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadapt(org.springframework.messaging.MessageChannel streamListenerResult, org.springframework.messaging.MessageChannel bindingTarget) Adapts the result to the binding target.booleanReturn true if the result type can be converted to the binding target.
-
Constructor Details
-
MessageChannelStreamListenerResultAdapter
public MessageChannelStreamListenerResultAdapter()
-
-
Method Details
-
supports
Description copied from interface:StreamListenerResultAdapterReturn true if the result type can be converted to the binding target.- Specified by:
supportsin interfaceStreamListenerResultAdapter<org.springframework.messaging.MessageChannel,org.springframework.messaging.MessageChannel> - Parameters:
resultType- the result type.bindingTarget- the binding target.- Returns:
- true if the conversion can take place.
-
adapt
public Closeable adapt(org.springframework.messaging.MessageChannel streamListenerResult, org.springframework.messaging.MessageChannel bindingTarget) Description copied from interface:StreamListenerResultAdapterAdapts the result to the binding target.- Specified by:
adaptin interfaceStreamListenerResultAdapter<org.springframework.messaging.MessageChannel,org.springframework.messaging.MessageChannel> - Parameters:
streamListenerResult- the result of invoking the method.bindingTarget- the binding target.- Returns:
- an adapted result
-