public class ProxyService extends Object implements Closeable
| 限定符和类型 | 字段和说明 |
|---|---|
protected AtomicReference<Semaphore> |
lookupRequestSemaphore |
protected int |
proxyLogLevel |
| 构造器和说明 |
|---|
ProxyService(ProxyConfiguration proxyConfig,
AuthenticationService authenticationService) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
AuthenticationService |
getAuthenticationService() |
AuthorizationService |
getAuthorizationService() |
ProxyConfiguration |
getConfiguration() |
ConfigurationCacheService |
getConfigurationCacheService() |
BrokerDiscoveryProvider |
getDiscoveryProvider() |
Optional<Integer> |
getListenPort() |
Optional<Integer> |
getListenPortTls() |
Semaphore |
getLookupRequestSemaphore() |
String |
getServiceUrl() |
String |
getServiceUrlTls() |
io.netty.util.Timer |
getTimer() |
io.netty.channel.EventLoopGroup |
getWorkerGroup() |
ZooKeeperClientFactory |
getZooKeeperClientFactory() |
void |
setConfigurationCacheService(ConfigurationCacheService configurationCacheService) |
void |
start() |
protected final AtomicReference<Semaphore> lookupRequestSemaphore
protected int proxyLogLevel
public ProxyService(ProxyConfiguration proxyConfig, AuthenticationService authenticationService) throws IOException
IOExceptionpublic ZooKeeperClientFactory getZooKeeperClientFactory()
public BrokerDiscoveryProvider getDiscoveryProvider()
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic String getServiceUrl()
public String getServiceUrlTls()
public ProxyConfiguration getConfiguration()
public io.netty.util.Timer getTimer()
public AuthenticationService getAuthenticationService()
public AuthorizationService getAuthorizationService()
public ConfigurationCacheService getConfigurationCacheService()
public void setConfigurationCacheService(ConfigurationCacheService configurationCacheService)
public Semaphore getLookupRequestSemaphore()
public io.netty.channel.EventLoopGroup getWorkerGroup()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.