public interface ServiceRegistrar extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this registrar, possibly unregistering all registered service endpoints.
|
ServiceRegistrationHandle |
register(ServiceRegistration registration)
Asynchronously register a set of service endpoints with a registry.
|
void |
unregister(ServiceRegistrationHandle handle)
Unregister a set of service endpoints previously registered.
|
ServiceRegistrationHandle register(ServiceRegistration registration)
registration - The service endpoints.unregister(ServiceRegistrationHandle).void unregister(ServiceRegistrationHandle handle)
handle - A handle returned by register(ServiceRegistration).void close()
close in interface AutoCloseableCopyright © 2015. All rights reserved.