Package org.keycloak.models.jpa.session
Class PersistentClientSessionEntity
java.lang.Object
org.keycloak.models.jpa.session.PersistentClientSessionEntity
- All Implemented Interfaces:
AsynchronousCommitAllowed
@Entity
public class PersistentClientSessionEntity
extends Object
implements AsynchronousCommitAllowed
- Author:
- Marek Posolda
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.keycloak.connections.jpa.AsynchronousCommitAllowed
AsynchronousCommitAllowed.EntityOperationType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()intintbooleanWhether this entity allows asynchronous commit for the given operation type.voidsetClientId(String clientId) voidsetClientStorageProvider(String clientStorageProvider) voidvoidsetExternalClientId(String externalClientId) voidsetOffline(String offline) voidsetRealmId(String realmId) voidsetTimestamp(int timestamp) voidsetUserSessionId(String userSessionId)
-
Field Details
-
LOCAL
- See Also:
-
EXTERNAL
- See Also:
-
userSessionId
-
clientId
-
clientStorageProvider
-
externalClientId
-
timestamp
protected int timestamp -
offline
-
data
-
realmId
-
-
Constructor Details
-
PersistentClientSessionEntity
public PersistentClientSessionEntity()
-
-
Method Details
-
isAsyncCommitAllowed
Description copied from interface:AsynchronousCommitAllowedWhether this entity allows asynchronous commit for the given operation type.Returning
falsefor any operation that occurs during a transaction will force synchronous commit for the entire transaction.- Specified by:
isAsyncCommitAllowedin interfaceAsynchronousCommitAllowed- Parameters:
operationType- the type of database operation being performed- Returns:
trueif the operation can tolerate asynchronous commit
-
getUserSessionId
-
setUserSessionId
-
getClientId
-
setClientId
-
getClientStorageProvider
-
setClientStorageProvider
-
getExternalClientId
-
setExternalClientId
-
getTimestamp
public int getTimestamp() -
setTimestamp
public void setTimestamp(int timestamp) -
getOffline
-
setOffline
-
getData
-
setData
-
getRealmId
-
setRealmId
-
getVersion
public int getVersion()
-