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

io.streamthoughts.jikkou.kafka.internals.Futures 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;

import java.util.concurrent.CompletableFuture;
import org.apache.kafka.common.KafkaFuture;

/**
 * Utility method to manipulate {@link KafkaFuture}.
 */
public final class Futures {

    private Futures() {}

    public static  CompletableFuture toCompletableFuture(final KafkaFuture future) {
        return future.toCompletionStage().toCompletableFuture();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy