Package com.velocitypowered.natives
Interface Disposable
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
VelocityCipher,VelocityCompressor
- All Known Implementing Classes:
JavaVelocityCipher,JavaVelocityCompressor,LibdeflateVelocityCompressor,NativeVelocityCipher
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
-
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-