Interface ReadableComponentProcessor<E extends Exception>

  • All Known Implementing Classes:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface ReadableComponentProcessor<E extends Exception>
    A processor of readable components.
    • Method Detail

      • process

        boolean process​(int index,
                        ReadableComponent component)
                 throws E extends Exception
        Process the given component at the given index in the iteration.

        The component object itself is only valid during this call, but the byte buffers, arrays, and native address pointers obtained from it, will be valid until any operation is performed on the buffer, which changes the internal memory.

        index - The current index of the given buffer component, based on the initial index passed to the Buffer.forEachReadable(int, ReadableComponentProcessor) method.
        component - The current buffer component being processed.
        true if the iteration should continue and more components should be processed, otherwise false to stop the iteration early.
        E extends Exception