Class InfinispanKeycloakTransaction
- java.lang.Object
-
- org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction
-
- All Implemented Interfaces:
KeycloakTransaction
public class InfinispanKeycloakTransaction extends Object implements KeycloakTransaction
- Author:
- Stian Thorgersen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InfinispanKeycloakTransaction.CacheOperation
static interface
InfinispanKeycloakTransaction.CacheTask
class
InfinispanKeycloakTransaction.CacheTaskWithValue<V>
-
Constructor Summary
Constructors Constructor Description InfinispanKeycloakTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
void
commit()
<K,V>
Vget(org.infinispan.commons.api.BasicCache<K,V> cache, K key)
boolean
getRollbackOnly()
boolean
isActive()
<K,V>
voidnotify(ClusterProvider clusterProvider, String taskKey, ClusterEvent event, boolean ignoreSender)
<K,V>
voidput(org.infinispan.Cache<K,V> cache, K key, V value)
<K,V>
voidput(org.infinispan.commons.api.BasicCache<K,V> cache, K key, V value, long lifespan, TimeUnit lifespanUnit)
<K,V>
voidputIfAbsent(org.infinispan.Cache<K,V> cache, K key, V value)
<K,V>
voidremove(org.infinispan.commons.api.BasicCache<K,V> cache, K key)
<K,V>
voidreplace(org.infinispan.Cache<K,V> cache, K key, V value, long lifespan, TimeUnit lifespanUnit)
void
rollback()
void
setRollbackOnly()
-
-
-
Method Detail
-
begin
public void begin()
- Specified by:
begin
in interfaceKeycloakTransaction
-
commit
public void commit()
- Specified by:
commit
in interfaceKeycloakTransaction
-
rollback
public void rollback()
- Specified by:
rollback
in interfaceKeycloakTransaction
-
setRollbackOnly
public void setRollbackOnly()
- Specified by:
setRollbackOnly
in interfaceKeycloakTransaction
-
getRollbackOnly
public boolean getRollbackOnly()
- Specified by:
getRollbackOnly
in interfaceKeycloakTransaction
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceKeycloakTransaction
-
put
public <K,V> void put(org.infinispan.Cache<K,V> cache, K key, V value)
-
put
public <K,V> void put(org.infinispan.commons.api.BasicCache<K,V> cache, K key, V value, long lifespan, TimeUnit lifespanUnit)
-
putIfAbsent
public <K,V> void putIfAbsent(org.infinispan.Cache<K,V> cache, K key, V value)
-
replace
public <K,V> void replace(org.infinispan.Cache<K,V> cache, K key, V value, long lifespan, TimeUnit lifespanUnit)
-
notify
public <K,V> void notify(ClusterProvider clusterProvider, String taskKey, ClusterEvent event, boolean ignoreSender)
-
remove
public <K,V> void remove(org.infinispan.commons.api.BasicCache<K,V> cache, K key)
-
get
public <K,V> V get(org.infinispan.commons.api.BasicCache<K,V> cache, K key)
-
-