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

Implement AutoCloseable on TraversalSource

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: 3.0.2-incubating
    • Fix Version/s: 3.2.3
    • Component/s: process
    • Labels:
      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

              • Assignee:
                spmallette stephen mallette
                Reporter:
                spmallette stephen mallette
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: