Package com.amazon.ion
Interface BufferConfiguration.OversizedValueHandler
-
- Enclosing class:
- BufferConfiguration<Configuration extends BufferConfiguration<Configuration>>
public static interface BufferConfiguration.OversizedValueHandlerFunctional interface for handling oversized values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonOversizedValue()Invoked each time a value (and any symbol tables that immediately precede it) exceed the buffer size limit specified by the LookaheadReaderWrapper instance, but the symbol tables by themselves do not exceed the limit.
-
-
-
Method Detail
-
onOversizedValue
void onOversizedValue() throws java.lang.ExceptionInvoked each time a value (and any symbol tables that immediately precede it) exceed the buffer size limit specified by the LookaheadReaderWrapper instance, but the symbol tables by themselves do not exceed the limit. 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 input pipe; normal processing will resume with the next value. If the implementation wishes to abort processing immediately, it may throw an exception from this method. Such an exception will propagate upward and will be thrown fromReaderLookaheadBuffer.fillInput().- Throws:
java.lang.Exception- if handler logic fails.
-
-