Class StoredTransientIdGenerationStrategy

All Implemented Interfaces:
TransientIdGenerationStrategy, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public class StoredTransientIdGenerationStrategy extends AbstractIdentifiableInitializableComponent implements TransientIdGenerationStrategy
Generates transients using a StorageService to manage the reverse mappings.

The identifier itself is the record key, and the value combines the principal name with the identifier of the recipient.

  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • idStore

      Store used to map identifiers to principals.
    • idGenerator

      Generator of random, hex-encoded, identifiers.
    • idSize

      private int idSize
      Size, in bytes, of the identifier.
    • idLifetime

      @Nonnull private Duration idLifetime
      Length identifiers are valid.
  • Constructor Details

    • StoredTransientIdGenerationStrategy

      public StoredTransientIdGenerationStrategy()
  • Method Details