Interface PartitionKeyResolver

All Known Implementing Classes:
DefaultPartitionKeyResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PartitionKeyResolver
Interface for implementations able to derive a consistently derive a numeric partition key from an event sequence identifier.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    resolve(String sequenceId)
    Deterministically resolves a partition number for the given sequence identifier.
  • Method Details

    • resolve

      long resolve(String sequenceId)
      Deterministically resolves a partition number for the given sequence identifier.
      Parameters:
      sequenceId - the event sequence identifier, as derived from EventSequenceResolver implementations
      Returns:
      the partition number