io.streamnative.pulsar.handlers.kop.lookup.LookupService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulsar-protocol-handler-kafka Show documentation
Show all versions of pulsar-protocol-handler-kafka Show documentation
Kafka on Pulsar implemented using Pulsar Protocol Handler
/**
* Copyright (c) 2019 - 2024 StreamNative, Inc.. All Rights Reserved.
*/
package io.streamnative.pulsar.handlers.kop.lookup;
import io.streamnative.pulsar.handlers.kop.EndPoint;
import java.net.InetSocketAddress;
import java.util.concurrent.CompletableFuture;
import javax.annotation.Nullable;
import org.apache.pulsar.common.naming.TopicName;
public interface LookupService {
CompletableFuture lookup(TopicName topicName, @Nullable EndPoint advertisedEndPoint);
default CompletableFuture closeAsync() {
return CompletableFuture.completedFuture(null);
}
}