Interface InternalBuffer

All Superinterfaces:
IBuffer

public interface InternalBuffer extends IBuffer
Internal buffer contract for storage that can be associated with a provider and terminally disposed.

IBuffer.release() relinquishes the current lease and may return storage to the associated provider for reuse. dispose() ends the storage lifetime permanently; a disposed buffer cannot be cleared or reused. External buffers can implement IBuffer without implementing this internal pooled-storage contract.

Author:
Eike Stepper
No Implement
This interface is not intended to be implemented by clients.
No Extend
This interface is not intended to be extended by clients.
  • Method Details

    • getBufferProvider

      IBufferProvider getBufferProvider()
      Returns the provider associated with this internal buffer.
      Specified by:
      getBufferProvider in interface IBuffer
      Returns:
      The current provider, or null if no provider is associated.
    • setBufferProvider

      void setBufferProvider(IBufferProvider bufferProvider)
    • dispose

      void dispose()
      Permanently disposes this buffer's storage. This is distinct from IBuffer.release(), which may return a reusable buffer to its provider.