インターフェース MessageSource<T>

型パラメーター:
T - 予想されるペイロード型。
すべてのスーパーインターフェース:
IntegrationPattern
すべての既知の実装クラス:
AbstractFetchLimitingMessageSourceAbstractInboundFileSynchronizingMessageSourceAbstractMessageSourceAbstractMongoDbMessageSourceAbstractRemoteFileStreamingMessageSourceAmqpMessageSourceAttributePollingMessageSourceByteStreamReadingMessageSourceCharacterStreamReadingMessageSourceCorrelatingMessageBarrierExpressionEvaluatingMessageSourceFeedEntryMessageSourceFileReadingMessageSourceFtpInboundFileSynchronizingMessageSourceFtpStreamingMessageSourceHazelcastDistributedSQLMessageSourceJdbcPollingChannelAdapterJmsDestinationPollingSourceJpaPollingChannelAdapterKafkaMessageSourceMailReceivingMessageSourceMBeanTreePollingMessageSourceMessageProcessorMessageSourceMethodInvokingMessageSourceMongoDbMessageSourceR2dbcMessageSourceReactiveMongoDbMessageSourceRedisStoreMessageSourceResourceRetrievingMessageSourceScriptExecutingMessageSourceSftpInboundFileSynchronizingMessageSourceSftpStreamingMessageSourceSmbInboundFileSynchronizingMessageSourceSmbStreamingMessageSourceStoredProcPollingChannelAdapter
関数インターフェース:
これは関数インターフェースであるため、ラムダ式またはメソッド参照の割り当てターゲットとして使用できます。

@FunctionalInterfaceSE public interface MessageSource<T> extends IntegrationPattern
ポーリング可能な Messages の任意のソースのベースインターフェース。
作成者:
Mark Fisher, Artem Bilan
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    このコンポーネントが実装するパターン型を返します。
    このソースから次に使用可能なメッセージを取得します。
  • メソッドの詳細

    • receive

      @Nullable Message<T> receive()
      このソースから次に使用可能なメッセージを取得します。使用可能なメッセージがない場合は、null を返します。
      戻り値:
      メッセージまたは null。
    • getIntegrationPatternType

      default IntegrationPatternType getIntegrationPatternType()
      インターフェースからコピーされた説明: IntegrationPattern
      このコンポーネントが実装するパターン型を返します。
      次で指定:
      インターフェース IntegrationPatterngetIntegrationPatternType 
      戻り値:
      このコンポーネントが実装する IntegrationPatternType