Interface BufferConfiguration.OversizedValueHandler

Enclosing class:
BufferConfiguration<Configuration extends BufferConfiguration<Configuration>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface BufferConfiguration.OversizedValueHandler
Functional interface for handling oversized values.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked each time a user value exceeds the buffer size limit specified.
  • Method Details

    • onOversizedValue

      void onOversizedValue()
      Invoked each time a user value exceeds the buffer size limit specified. This is recoverable. If the implementation wishes to recover, it should simply return normally from this method. The oversized value will be flushed from the buffer; normal processing will resume with the next value. If the implementation wishes to abort processing immediately, it may throw an exception from this method.