@FunctionalInterface public interface MessageSource<T> extends IntegrationPattern
Messages that can be polled.| Modifier and Type | Method and Description |
|---|---|
default IntegrationPatternType |
getIntegrationPatternType()
Return a pattern type this component implements.
|
Message<T> |
receive()
Retrieve the next available message from this source.
|
@Nullable Message<T> receive()
null if no message is available.default IntegrationPatternType getIntegrationPatternType()
IntegrationPatterngetIntegrationPatternType in interface IntegrationPatternIntegrationPatternType this component implements.