Class Closer

java.lang.Object
org.apache.calcite.util.Closer
All Implemented Interfaces:
AutoCloseable

public final class Closer extends Object implements AutoCloseable
Helper that holds onto AutoCloseable resources and releases them when its #close method is called.

Similar to com.google.common.io.Closer but can deal with AutoCloseable, and doesn't throw IOException.

  • Constructor Details

    • Closer

      public Closer()
  • Method Details