You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Pavel Mikhailovskii (Jira)" <ji...@apache.org> on 2020/11/26 21:25:00 UTC
[jira] [Created] (JENA-2004) Implement functionality currently
provided by Txn class directly in Transactional. Deprecate Txn class.
Pavel Mikhailovskii created JENA-2004:
-----------------------------------------
Summary: Implement functionality currently provided by Txn class directly in Transactional. Deprecate Txn class.
Key: JENA-2004
URL: https://issues.apache.org/jira/browse/JENA-2004
Project: Apache Jena
Issue Type: Improvement
Environment: The default methods feature introduced in Java 8 allows us to implement the functionality currently provided by Txn class directly in Transactional.
That would allow us instead of writing
{code:java}
import org.apache.jena.system.Txn;
. . .
Txn.executeRead(ds, ()-> {
. . .
});
{code}
write just
{code:java}
ds.executeRead(()-> {
. . .
});
{code}
Reporter: Pavel Mikhailovskii
--
This message was sent by Atlassian Jira
(v8.3.4#803005)