public class DefaultDependencyWatcher extends Object implements DependencyRegistrationHookProvider, org.springframework.context.ApplicationListener<org.springframework.cloud.client.discovery.event.InstanceRegisteredEvent<?>>
DependencyPresenceOnStartupVerifier
,
DependencyWatcherListener
Constructor and Description |
---|
DefaultDependencyWatcher(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery,
DependencyPresenceOnStartupVerifier dependencyPresenceOnStartupVerifier,
List<DependencyWatcherListener> dependencyWatcherListeners,
ZookeeperDependencies zookeeperDependencies) |
Modifier and Type | Method and Description |
---|---|
void |
clearDependencyRegistrationHooks()
Unregister hooks upon dependencies registration
|
void |
onApplicationEvent(org.springframework.cloud.client.discovery.event.InstanceRegisteredEvent<?> event) |
void |
registerDependencyRegistrationHooks()
Register hooks upon dependencies registration
|
public DefaultDependencyWatcher(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery, DependencyPresenceOnStartupVerifier dependencyPresenceOnStartupVerifier, List<DependencyWatcherListener> dependencyWatcherListeners, ZookeeperDependencies zookeeperDependencies)
public void onApplicationEvent(org.springframework.cloud.client.discovery.event.InstanceRegisteredEvent<?> event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.cloud.client.discovery.event.InstanceRegisteredEvent<?>>
public void registerDependencyRegistrationHooks()
DependencyRegistrationHookProvider
registerDependencyRegistrationHooks
in interface DependencyRegistrationHookProvider
public void clearDependencyRegistrationHooks() throws IOException
DependencyRegistrationHookProvider
clearDependencyRegistrationHooks
in interface DependencyRegistrationHookProvider
IOException
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.