Interface IdTranslator


public interface IdTranslator
Type providing means to translate between IDs from a publisher and IDs from a subscriber.
Since:
5.1.504, 5.2.103
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Long
    Translate the given ID of an element used within the subcriber to the ID as defined by the publisher.
    @Nullable Long
    Translates the given ID of an element from the publisher to the ID to be used within the subscriber.
  • Method Details

    • translateIdToSubscriber

      @Nullable @Nullable Long translateIdToSubscriber(Long publisherId)
      Translates the given ID of an element from the publisher to the ID to be used within the subscriber.
      Parameters:
      publisherId - The element's ID as defined by the publisher.
      Returns:
      The corresponding ID within the subscriber or null, if no matching ID was found.
      Since:
      5.1.504, 5.2.103
    • translateIdToPublisher

      @Nullable @Nullable Long translateIdToPublisher(Long subscriberId)
      Translate the given ID of an element used within the subcriber to the ID as defined by the publisher.
      Parameters:
      subscriberId - The element's ID as to be used within the subscriber.
      Returns:
      The corresponding ID of the element as defined within the publisher or null, if no matching ID was found.
      Since:
      5.1.504, 5.2.103