org.apache.tinkerpop.gremlin.util.iterator

## Class StoreIteratorCounter

- java.lang.Object
- - org.apache.tinkerpop.gremlin.util.iterator.StoreIteratorCounter

-     public class StoreIteratorCounter
      extends Object

  Utility class which can be used by providers to keep a count of the number of open iterators to the underlying storage. Please note that, by default, this does not maintain the count unless explicitly plugged-in by the provider implementation.

  As an example on how to plugin-in the counter in the provider implementation check TinkerGraphIterator.

  See Also:
    `Traversal.close()`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static StoreIteratorCounter` | `INSTANCE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `StoreIteratorCounter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `decrement()`
    `long` | `getOpenIteratorCount()`
    `void` | `increment()`
    `void` | `reset()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final StoreIteratorCounter INSTANCE

  - ### Constructor Detail

    - #### StoreIteratorCounter

          public StoreIteratorCounter()

  - ### Method Detail

    - #### reset

          public void reset()

    - #### getOpenIteratorCount

          public long getOpenIteratorCount()

    - #### increment

          public void increment()

    - #### decrement

          public void decrement()

Copyright © 2013–2019 Apache Software Foundation. All rights reserved.