Interface UpdaterFactory<K,V,T extends Updater<K,V>>

Type Parameters:
K - The Infinispan key type.
V - The Infinispan value type.
T - The Updater concrete type.
All Known Implementing Classes:
RemoteUserLoginFailureProviderFactory

public interface UpdaterFactory<K,V,T extends Updater<K,V>>
A factory interface that creates, wraps or deletes entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(K key, V entity)
    Creates an Updater for an entity created by the current Keycloak transaction.
    deleted(K key)
    Deletes a entity that was not previous read by the Keycloak transaction.
    default T
    wrapFromCache(K key, org.infinispan.client.hotrod.MetadataValue<V> entity)
    Wraps an entity read from the Infinispan cache.
    wrapFromCache(K key, V value, long version)
    Wraps an entity read from the Infinispan cache.
  • Method Details

    • create

      T create(K key, V entity)
      Creates an Updater for an entity created by the current Keycloak transaction.
      Parameters:
      key - The Infinispan key.
      entity - The Infinispan value.
      Returns:
      The Updater to be used when updating the entity state.
    • wrapFromCache

      default T wrapFromCache(K key, org.infinispan.client.hotrod.MetadataValue<V> entity)
      Wraps an entity read from the Infinispan cache.
      Parameters:
      key - The Infinispan key.
      entity - The Infinispan value.
      Returns:
      The Updater to be used when updating the entity state.
    • wrapFromCache

      T wrapFromCache(K key, V value, long version)
      Wraps an entity read from the Infinispan cache.
      Parameters:
      key - The Infinispan key.
      value - The Infinispan value.
      version - The entry version.
      Returns:
      The Updater to be used when updating the entity state.
    • deleted

      T deleted(K key)
      Deletes a entity that was not previous read by the Keycloak transaction.
      Parameters:
      key - The Infinispan key.
      Returns:
      The Updater for a deleted entity.