Interface UpdaterFactory<K,V,T extends Updater<K,V>>
- Type Parameters:
K- The Infinispan key type.V- The Infinispan value type.T- TheUpdaterconcrete type.
- All Known Implementing Classes:
RemoteInfinispanAuthenticationSessionProviderFactory,RemoteUserLoginFailureProviderFactory
public interface UpdaterFactory<K,V,T extends Updater<K,V>>
A factory interface that creates, wraps or deletes entities.
-
Method Summary
Modifier and TypeMethodDescriptionCreates anUpdaterfor an entity created by the current Keycloak transaction.Deletes a entity that was not previous read by the Keycloak transaction.default TwrapFromCache(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
Creates anUpdaterfor an entity created by the current Keycloak transaction.- Parameters:
key- The Infinispan key.entity- The Infinispan value.- Returns:
- The
Updaterto be used when updating the entity state.
-
wrapFromCache
Wraps an entity read from the Infinispan cache.- Parameters:
key- The Infinispan key.entity- The Infinispan value.- Returns:
- The
Updaterto be used when updating the entity state.
-
wrapFromCache
Wraps an entity read from the Infinispan cache.- Parameters:
key- The Infinispan key.value- The Infinispan value.version- The entry version.- Returns:
- The
Updaterto be used when updating the entity state.
-
deleted
Deletes a entity that was not previous read by the Keycloak transaction.- Parameters:
key- The Infinispan key.- Returns:
- The
Updaterfor a deleted entity.
-