All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.streamthoughts.jikkou.kafka.internals.producer.ProducerRequestResult Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright (c) The original authors
 *
 * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
 */
package io.streamthoughts.jikkou.kafka.internals.producer;

import io.streamthoughts.jikkou.kafka.internals.KafkaRecord;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public record ProducerRequestResult(@NotNull KafkaRecord record,
                                          @Nullable Integer partition,
                                          @Nullable Long offset,
                                          @Nullable Long timestamp,
                                          @Nullable Throwable error) {

    public ProducerRequestResult(@NotNull KafkaRecord record,
                                 @NotNull Integer partition,
                                 @NotNull Long offset,
                                 @NotNull Long timestamp) {
        this(record, partition, offset, timestamp, null);
    }

    public ProducerRequestResult(@NotNull KafkaRecord record,
                                 @NotNull Throwable error) {
        this(record, null, null, null, error);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy