Class BufferConfiguration<Configuration extends BufferConfiguration<Configuration>>

java.lang.Object
com.amazon.ion.BufferConfiguration<Configuration>
Type Parameters:
Configuration - the type of the concrete subclass of this BufferConfiguration.
Direct Known Subclasses:
IonBufferConfiguration

public abstract class BufferConfiguration<Configuration extends BufferConfiguration<Configuration>> extends Object
Provides logic common to all BufferConfiguration implementations.
  • Constructor Details

    • BufferConfiguration

      protected BufferConfiguration(BufferConfiguration.Builder<Configuration,?> builder)
      Constructs an instance from the given Builder.
      Parameters:
      builder - the builder containing the settings to apply to the new configuration.
  • Method Details

    • requireUnlimitedBufferSize

      protected void requireUnlimitedBufferSize()
      Requires that the maximum buffer size not be limited.
    • getInitialBufferSize

      public final int getInitialBufferSize()
      Returns:
      the initial size of the buffer, in bytes.
    • getMaximumBufferSize

      public final int getMaximumBufferSize()
      Returns:
      the maximum number of bytes that will be buffered.
    • getOversizedValueHandler

      public final BufferConfiguration.OversizedValueHandler getOversizedValueHandler()
      Returns:
      the handler that will be notified when oversized values are encountered.
    • getDataHandler

      public final BufferConfiguration.DataHandler getDataHandler()
      Returns:
      the handler that will be notified when data is processed.