Class SingleUseObjectTransaction
java.lang.Object
org.keycloak.models.AbstractKeycloakTransaction
org.keycloak.models.sessions.infinispan.remote.transaction.SingleUseObjectTransaction
- All Implemented Interfaces:
KeycloakTransaction
Syntactic sugar for
RemoteInfinispanKeycloakTransaction<String, SingleUseObjectValueEntity, ConditionalRemover<String,
SingleUseObjectValueEntity>>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.keycloak.models.AbstractKeycloakTransaction
AbstractKeycloakTransaction.TransactionState
-
Field Summary
Fields inherited from class org.keycloak.models.AbstractKeycloakTransaction
state
-
Constructor Summary
ConstructorDescriptionSingleUseObjectTransaction
(org.infinispan.client.hotrod.RemoteCache<String, SingleUseObjectValueEntity> cache) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
org.infinispan.client.hotrod.RemoteCache<String,
SingleUseObjectValueEntity> getCache()
void
put
(String key, SingleUseObjectValueEntity value, long lifespan, TimeUnit timeUnit) void
void
replace
(String key, SingleUseObjectValueEntity value, int lifespan, TimeUnit timeUnit) protected void
Methods inherited from class org.keycloak.models.AbstractKeycloakTransaction
begin, beginImpl, commit, getRollbackOnly, getState, isActive, rollback, setRollbackOnly
-
Constructor Details
-
SingleUseObjectTransaction
public SingleUseObjectTransaction(org.infinispan.client.hotrod.RemoteCache<String, SingleUseObjectValueEntity> cache)
-
-
Method Details
-
commitImpl
protected void commitImpl()- Specified by:
commitImpl
in classAbstractKeycloakTransaction
-
rollbackImpl
protected void rollbackImpl()- Specified by:
rollbackImpl
in classAbstractKeycloakTransaction
-
put
-
replace
-
remove
-
get
-
getCache
-