[ 
https://issues.apache.org/jira/browse/JENA-2004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17302923#comment-17302923
 ] 

ASF subversion and git services commented on JENA-2004:
-------------------------------------------------------

Commit 0159c62e654c1144769e6ee9009f265dca63358b in jena's branch 
refs/heads/main from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=0159c62 ]

JENA-2004: Provide Transactional helper default methods.


> 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
>            Priority: Minor
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to