public class ConsulStubsRegistrar extends Object implements StubsRegistrar
Constructor and Description |
---|
ConsulStubsRegistrar(StubRunning stubRunning,
com.ecwid.consul.v1.ConsulClient consulClient,
StubMapperProperties stubMapperProperties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected String |
name(StubConfiguration stubConfiguration) |
protected com.ecwid.consul.v1.agent.model.NewService |
newService(StubConfiguration stubConfiguration,
Integer port) |
void |
registerStubs() |
public ConsulStubsRegistrar(StubRunning stubRunning, com.ecwid.consul.v1.ConsulClient consulClient, StubMapperProperties stubMapperProperties)
public void registerStubs()
registerStubs
in interface StubsRegistrar
protected com.ecwid.consul.v1.agent.model.NewService newService(StubConfiguration stubConfiguration, Integer port)
protected String name(StubConfiguration stubConfiguration)
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2016–2018 Spring. All rights reserved.