Interface KeyGroupPartitioner.KeyGroupElementsConsumer<T>

  • Type Parameters:
    T - type of the consumed elements.
    Enclosing class:
    KeyGroupPartitioner<T>
    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 KeyGroupPartitioner.KeyGroupElementsConsumer<T>
    Functional interface to consume elements from a key group.
    • Method Detail

      • consume

        void consume​(@Nonnull
                     T element,
                     @Nonnegative
                     int keyGroupId)
              throws IOException
        Throws:
        IOException