Class AffinityIdentifierFactory<I>

java.lang.Object
org.wildfly.clustering.ee.infinispan.affinity.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 Details

  • Method Details

    • 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>
    • start

      public void start()
      Specified by:
      start in interface Restartable
    • stop

      public void stop()
      Specified by:
      stop in interface Restartable