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

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

Kernel

Fix versions

Affects versions

Ported to...

Corda 4.4
Corda Enterprise 4.4

Story Points / Dev Days

5

Build cut

None

Feature Team

Kernel Group
Configure