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)

Reply via email to