public final class ServiceDiscoveryContext extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceDiscoveryContext.Builder |
| Modifier and Type | Method and Description |
|---|---|
io.scalecube.net.Address |
address()
Returns service discovery address.
|
static ServiceDiscoveryContext.Builder |
builder() |
static ServiceDiscoveryContext.Builder |
from(ServiceDiscoveryContext other)
Returns copy builder.
|
String |
id()
Returns service discovery id.
|
reactor.core.publisher.Flux<ServiceDiscoveryEvent> |
listen()
Returns stream of service discovery events.
|
String |
toString() |
public static ServiceDiscoveryContext.Builder builder()
public static ServiceDiscoveryContext.Builder from(ServiceDiscoveryContext other)
other - instance to copy frompublic String id()
public io.scalecube.net.Address address()
Address.NULL_ADDRESS.ServiceDiscovery.start(),
ServiceDiscovery.listen()public reactor.core.publisher.Flux<ServiceDiscoveryEvent> listen()
ServiceDiscovery.start(). If it's called before then new events will be streamed, if it's
called after then ServiceRegistry.listServiceEndpoints() will be turned to service
discovery events of type ServiceDiscoveryEvent.Type.ENDPOINT_ADDED, and concateneted with a stream of live
events.Copyright © 2015–2021. All rights reserved.