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 put
(org.infinispan.commons.api.BasicCache<K, V> cache, K key, V value, long lifespan, TimeUnit lifespanUnit) <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.commons.api.BasicCache<K, V> cache, K key, V value, long lifespan, TimeUnit lifespanUnit) -
replace
public <K,V> void replace(org.infinispan.Cache<K, V> cache, K key, V value, long lifespan, TimeUnit lifespanUnit) -
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)
-