Class PartitionTestSupport

java.lang.Object
org.springframework.cloud.stream.binder.PartitionTestSupport
All Implemented Interfaces:
org.springframework.cloud.stream.binder.PartitionKeyExtractorStrategy, org.springframework.cloud.stream.binder.PartitionSelectorStrategy

public class PartitionTestSupport extends Object implements org.springframework.cloud.stream.binder.PartitionKeyExtractorStrategy, org.springframework.cloud.stream.binder.PartitionSelectorStrategy
Author:
Gary Russell
  • Constructor Details

    • PartitionTestSupport

      public PartitionTestSupport()
  • Method Details

    • selectPartition

      public int selectPartition(Object key, int divisor)
      Specified by:
      selectPartition in interface org.springframework.cloud.stream.binder.PartitionSelectorStrategy
    • extractKey

      public Object extractKey(org.springframework.messaging.Message<?> message)
      Specified by:
      extractKey in interface org.springframework.cloud.stream.binder.PartitionKeyExtractorStrategy