Class ClusterEventEntity

java.lang.Object
org.keycloak.cluster.jpa.ClusterEventEntity
All Implemented Interfaces:
AsynchronousCommitAllowed

@Entity public class ClusterEventEntity extends Object implements AsynchronousCommitAllowed
  • Constructor Details

    • ClusterEventEntity

      public ClusterEventEntity()
  • Method Details

    • isAsyncCommitAllowed

      public boolean isAsyncCommitAllowed(AsynchronousCommitAllowed.EntityOperationType operationType)
      Description copied from interface: AsynchronousCommitAllowed
      Whether this entity allows asynchronous commit for the given operation type.

      Returning false for any operation that occurs during a transaction will force synchronous commit for the entire transaction.

      Specified by:
      isAsyncCommitAllowed in interface AsynchronousCommitAllowed
      Parameters:
      operationType - the type of database operation being performed
      Returns:
      true if the operation can tolerate asynchronous commit
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getTargetCluster

      public String getTargetCluster()
    • setTargetCluster

      public void setTargetCluster(String targetCluster)
    • getSenderCluster

      public String getSenderCluster()
    • setSenderCluster

      public void setSenderCluster(String senderCluster)
    • getEventData

      public byte[] getEventData()
    • setEventData

      public void setEventData(byte[] eventData)
    • getCreatedAt

      public long getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(long createdAt)