public class ImportedConsulService extends Object
| Constructor and Description |
|---|
ImportedConsulService(String name,
String id,
Record record)
Creates a new instance of
ImportedConsulService. |
| Modifier and Type | Method and Description |
|---|---|
String |
name() |
ImportedConsulService |
register(ServicePublisher publisher,
Promise<ImportedConsulService> completion)
Registers the service and completes the given future when done.
|
void |
unregister(ServicePublisher publiher,
Promise<Void> completion)
Unregisters the service and completes the given future when done, if not
null |
public ImportedConsulService(String name, String id, Record record)
ImportedConsulService.name - the service nameid - the service id, may be the namerecord - the record (not yet registered)public String name()
public ImportedConsulService register(ServicePublisher publisher, Promise<ImportedConsulService> completion)
publisher - the service publisher instancecompletion - the completion futureImportedConsulServicepublic void unregister(ServicePublisher publiher, Promise<Void> completion)
nullpubliher - the service publisher instancecompletion - the completion futureCopyright © 2023 Eclipse. All rights reserved.