Package org.keycloak.cluster.jpa
Class ClusterEventEntity
java.lang.Object
org.keycloak.cluster.jpa.ClusterEventEntity
- All Implemented Interfaces:
AsynchronousCommitAllowed
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.connections.jpa.AsynchronousCommitAllowed
AsynchronousCommitAllowed.EntityOperationType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbyte[]getId()booleanWhether this entity allows asynchronous commit for the given operation type.voidsetCreatedAt(long createdAt) voidsetEventData(byte[] eventData) voidvoidsetSenderCluster(String senderCluster) voidsetTargetCluster(String targetCluster)
-
Constructor Details
-
ClusterEventEntity
public ClusterEventEntity()
-
-
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
-
getId
-
setId
-
getTargetCluster
-
setTargetCluster
-
getSenderCluster
-
setSenderCluster
-
getEventData
public byte[] getEventData() -
setEventData
public void setEventData(byte[] eventData) -
getCreatedAt
public long getCreatedAt() -
setCreatedAt
public void setCreatedAt(long createdAt)
-