io.smallrye.stork.api.ServiceRegistrar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stork-api Show documentation
Show all versions of stork-api Show documentation
Main Stork API classes. You are likely to need `smallrye-stork-core` and not this module.
The newest version!
package io.smallrye.stork.api;
import io.smallrye.mutiny.Uni;
public interface ServiceRegistrar & MetadataKey> {
default Uni registerServiceInstance(String serviceName, String ipAddress, int defaultPort) {
return registerServiceInstance(serviceName, Metadata.empty(), ipAddress, defaultPort);
}
Uni registerServiceInstance(String serviceName, Metadata metadata, String ipAddress,
int defaultPort);
}