Class AffinityIdentifierFactory<I>

  • Type Parameters:
    I - the identifier type
    All Implemented Interfaces:
    Supplier<I>, org.infinispan.affinity.KeyGenerator<Key<I>>, IdentifierFactory<I>, Restartable

    public class AffinityIdentifierFactory<I>
    extends Object
    implements IdentifierFactory<I>, org.infinispan.affinity.KeyGenerator<Key<I>>
    An IdentifierFactory that uses a KeyAffinityService to pre-generate locally hashing identifiers from a supplier.
    Author:
    Paul Ferraro
    • Constructor Detail

    • Method Detail

      • get

        public I get()
        Specified by:
        get in interface Supplier<I>
      • getKey

        public Key<I> getKey()
        Specified by:
        getKey in interface org.infinispan.affinity.KeyGenerator<I>