Interface Disposable

All Superinterfaces:
AutoCloseable, Closeable
All Known Subinterfaces:
VelocityCipher, VelocityCompressor
All Known Implementing Classes:
JavaVelocityCipher, JavaVelocityCompressor, LibdeflateVelocityCompressor, NativeVelocityCipher

public interface Disposable extends Closeable
This marker interface indicates that this object should be explicitly disposed before the object can no longer be used. Not disposing these objects will likely leak native resources and eventually lead to resource exhaustion.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disposes this object.
  • Method Details

    • close

      void close()
      Disposes this object. After this call returns, any use of this object becomes invalid. Multiple calls to this function should be safe: there should be no side-effects once an object is disposed.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable