Class InfinispanKeycloakTransaction
java.lang.Object
org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction
- All Implemented Interfaces:
KeycloakTransaction
- Author:
- Stian Thorgersen
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static interface
static class
static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
void
commit()
<K,
V> V get
(org.infinispan.commons.api.BasicCache<K, V> cache, K key) boolean
boolean
isActive()
<K,
V> void notify
(ClusterProvider clusterProvider, String taskKey, ClusterEvent event, boolean ignoreSender) <K,
V> void put
(org.infinispan.Cache<K, V> cache, K key, V value) <K,
V> void put
(org.infinispan.commons.api.BasicCache<K, V> cache, K key, V value, long lifespan, TimeUnit lifespanUnit) <K,
V> void putIfAbsent
(org.infinispan.Cache<K, V> cache, K key, V value) <K,
V> void remove
(org.infinispan.commons.api.BasicCache<K, V> cache, K key) <K,
V> void void
rollback()
void
-
Constructor Details
-
InfinispanKeycloakTransaction
public InfinispanKeycloakTransaction()
-
-
Method Details
-
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)
-