public class ClientFactory extends Object implements org.springframework.beans.factory.FactoryBean<ExternalTaskClient>, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected BackoffStrategy |
backoffStrategy |
protected ExternalTaskClient |
client |
protected ClientConfiguration |
clientConfiguration |
protected static ClientLoggerUtil |
LOG |
protected org.springframework.core.env.PropertyResolver |
propertyResolver |
protected List<ClientRequestInterceptor> |
requestInterceptors |
Constructor and Description |
---|
ClientFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
addClientRequestInterceptors(ExternalTaskClientBuilder taskClientBuilder) |
void |
afterPropertiesSet() |
protected void |
close() |
ClientConfiguration |
getClientConfiguration() |
ExternalTaskClient |
getObject() |
Class<ExternalTaskClient> |
getObjectType() |
List<ClientRequestInterceptor> |
getRequestInterceptors() |
boolean |
isSingleton() |
protected String |
resolve(String property) |
void |
setClientBackoffStrategy(BackoffStrategy backoffStrategy) |
void |
setClientConfiguration(ClientConfiguration clientConfiguration) |
protected void |
setPropertyConfigurer(org.springframework.context.support.PropertySourcesPlaceholderConfigurer configurer) |
void |
setRequestInterceptors(List<ClientRequestInterceptor> requestInterceptors) |
protected static final ClientLoggerUtil LOG
protected ClientConfiguration clientConfiguration
protected BackoffStrategy backoffStrategy
protected List<ClientRequestInterceptor> requestInterceptors
protected ExternalTaskClient client
protected org.springframework.core.env.PropertyResolver propertyResolver
public ExternalTaskClient getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<ExternalTaskClient>
protected void addClientRequestInterceptors(ExternalTaskClientBuilder taskClientBuilder)
@Autowired(required=false) public void setRequestInterceptors(List<ClientRequestInterceptor> requestInterceptors)
@Autowired(required=false) public void setClientBackoffStrategy(BackoffStrategy backoffStrategy)
public Class<ExternalTaskClient> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<ExternalTaskClient>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<ExternalTaskClient>
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public ClientConfiguration getClientConfiguration()
public void setClientConfiguration(ClientConfiguration clientConfiguration)
public List<ClientRequestInterceptor> getRequestInterceptors()
protected void close()
@Autowired(required=false) protected void setPropertyConfigurer(org.springframework.context.support.PropertySourcesPlaceholderConfigurer configurer)
Copyright © 2022. All rights reserved.