[
https://issues.apache.org/jira/browse/IGNITE-17260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Lapin updated IGNITE-17260:
-------------------------------------
Description:
It's required to explicitly register an intent of starting readOnly
transaction, so following decorator producer is expected in IgniteTransactions
{code:java}
/**
* Decorated {@code IgniteTransactions} instance that will start read-only
transactions.
*
* @return Decorated {@code IgniteTransactions} instance that will start
read-only transactions.
*/
IgniteTransactions readOnly(); {code}
Besides that Transaction interface should be extended with
{code:java}
boolean isReadOnly();{code}
and
{code:java}
HybridTimestamp timestamp();{code}
methods.
was:
It's required to explicitly register an intent of starting readOnly
transaction, so that new methods similar to
{code:java}
Transaction begin(boolean readOnly){code}
and
{code:java}
CompletableFuture<Transaction> beginAsync(boolean readOnly){code}
should be added to IgniteTransactions together with corresponding
implementation.
Besides that Transaction interface should be extended with
{code:java}
boolean isReadOnly();{code}
and
{code:java}
HybridTimestamp timestamp();{code}
methods.
> Enrich IgniteTransactions and Transaction interfaces with RO related methods
> ----------------------------------------------------------------------------
>
> Key: IGNITE-17260
> URL: https://issues.apache.org/jira/browse/IGNITE-17260
> Project: Ignite
> Issue Type: Improvement
> Reporter: Alexander Lapin
> Assignee: Alexander Lapin
> Priority: Major
> Labels: ignite-3, transaction3_ro
>
> It's required to explicitly register an intent of starting readOnly
> transaction, so following decorator producer is expected in IgniteTransactions
> {code:java}
> /**
> * Decorated {@code IgniteTransactions} instance that will start read-only
> transactions.
> *
> * @return Decorated {@code IgniteTransactions} instance that will start
> read-only transactions.
> */
> IgniteTransactions readOnly(); {code}
> Besides that Transaction interface should be extended with
> {code:java}
> boolean isReadOnly();{code}
> and
> {code:java}
> HybridTimestamp timestamp();{code}
> methods.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)