Interface UpdaterFactory<K,V,T extends Updater<K,V>>
- Type Parameters:
K
- The Infinispan key type.V
- The Infinispan value type.T
- TheUpdater
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 TypeMethodDescriptionCreates anUpdater
for an entity created by the current Keycloak transaction.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
Creates anUpdater
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
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
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
Deletes a entity that was not previous read by the Keycloak transaction.- Parameters:
key
- The Infinispan key.- Returns:
- The
Updater
for a deleted entity.
-