Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-790

Implement AutoCloseable on TraversalSource

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 3.0.2-incubating
    • 3.2.3
    • process
    • None

    Description

      A TraversalSource may have resources to release so having a close method would allows that release to occur. The specific case has to do with EventStrategy which registers a listener on Transaction. That listener should be removed when the user is done with the TraversalSource, but there is currently no way to clean that up. The calling of close should prevent future traversals from that TraversalSource.

      I suppose this also means that a TraversalStrategy will need to optionally implement AutoCloseable or some other marker interface to designate it as a strategy that needs to release resources.

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              spmallette Stephen Mallette
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: