public class DefaultDiscoveryService extends Object implements DiscoveryService
| Constructor and Description |
|---|
DefaultDiscoveryService(DiscoveryServiceSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
The start method is called on system startup to implement simple
lifecycle management.
|
Iterable<DiscoveryNode> |
discoverNodes()
Returns a discovered and filtered, if a
NodeFilter is setup, set of
discovered nodes to connect to. |
void |
start()
The start method is called on system startup to implement simple
lifecycle management.
|
public DefaultDiscoveryService(DiscoveryServiceSettings settings)
public void start()
DiscoveryServiceDiscoveryStrategy.start() on all discovered and start up strategies.start in interface DiscoveryServicepublic Iterable<DiscoveryNode> discoverNodes()
DiscoveryServiceNodeFilter is setup, set of
discovered nodes to connect to.discoverNodes in interface DiscoveryServicepublic void destroy()
DiscoveryServiceDiscoveryStrategy.destroy() on all discovered and destroy strategies
before the service itself will be destroyed.destroy in interface DiscoveryServiceCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.