Interface TransactionLogStore


public interface TransactionLogStore
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(String processId, String instanceId)
     
    void
    delete(String transactionId)
    Deletes all entries of the transaction log for given transaction identifier
    void
    delete(String transactionId, String processId, String instanceId)
     
    List all transactions that require recovery
    list(String processId)
    List all transaction log entries for given process id regardless of the transaction it was written with
    byte[]
    load(String processId, String instanceId)
    Reads the content of the process instance associated with given process id and process instance id
    void
    store(String transactionId, String processId, String instanceId, byte[] content)
    Persists given content that is associated with transaction id, process id and instance id
  • Method Details

    • store

      void store(String transactionId, String processId, String instanceId, byte[] content)
      Persists given content that is associated with transaction id, process id and instance id
      Parameters:
      transactionId - identifier of the transaction
      processId - identifier of the process definition
      instanceId - identifier of the process instance
      content - content of the process instance
    • load

      byte[] load(String processId, String instanceId)
      Reads the content of the process instance associated with given process id and process instance id
      Parameters:
      processId - identifier of the process definition
      instanceId - identifier of the process instance
      Returns:
      content content of the process instance
    • list

      Set<String> list(String processId)
      List all transaction log entries for given process id regardless of the transaction it was written with
      Parameters:
      processId - identifier of the process definition
      Returns:
      not null set of instances that should be recovered
    • list

      Set<String> list()
      List all transactions that require recovery
      Returns:
      set of transactions ids to be reovered or empty set
    • delete

      void delete(String transactionId)
      Deletes all entries of the transaction log for given transaction identifier
      Parameters:
      transactionId - identifier of the transaction
    • delete

      void delete(String transactionId, String processId, String instanceId)
    • contains

      boolean contains(String processId, String instanceId)