Create interface to perform transactional operations from custom CordaServices

Description

Currently CordaPersistence can perform required operations, however it is:

  1. not an interface;

  2. provides access to some destructive operations like close().

Instead a lighter interface should be created, e.g. CordaTransactionSupport which will help with transaction aspect of the execution without giving access to the rest of the methods of CordaPersistence interface.

Also CordaTransactionSupport should be made accessible from AppServiceHub such that @CordaServices will be able to use it to start independent transactions in their own threads.

 

Assignee

Viktor Kolomeyko

Reporter

Viktor Kolomeyko

Labels

None

Feature Team

Kernel Group

Story Points

5

Fix versions

Ported to...

Corda 4.4
Corda Enterprise 4.4

Priority

Medium

Sprint

None

Affects versions

Configure