public class ClientResourcesFactoryBean extends AbstractFactoryBean<ClientResources>
FactoryBean that creates a ClientResources instance representing the infrastructure resources (thread pools)
for a Redis Client.logger| Constructor and Description |
|---|
ClientResourcesFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected ClientResources |
createInstance() |
protected void |
destroyInstance(ClientResources instance) |
int |
getComputationThreadPoolSize() |
int |
getIoThreadPoolSize() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setComputationThreadPoolSize(int computationThreadPoolSize)
Sets the thread pool size (number of threads to use) for computation operations (default value is the number of CPUs).
|
void |
setIoThreadPoolSize(int ioThreadPoolSize)
Sets the thread pool size (number of threads to use) for I/O operations (default value is the number of CPUs).
|
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, setBeanClassLoader, setBeanFactory, setSingletonpublic int getIoThreadPoolSize()
public void setIoThreadPoolSize(int ioThreadPoolSize)
ioThreadPoolSize - the thread pool sizepublic int getComputationThreadPoolSize()
public void setComputationThreadPoolSize(int computationThreadPoolSize)
computationThreadPoolSize - the thread pool sizepublic Class<?> getObjectType()
getObjectType in interface FactoryBean<ClientResources>getObjectType in class AbstractFactoryBean<ClientResources>protected ClientResources createInstance() throws Exception
createInstance in class AbstractFactoryBean<ClientResources>Exceptionprotected void destroyInstance(ClientResources instance) throws Exception
destroyInstance in class AbstractFactoryBean<ClientResources>Exceptionpublic boolean isSingleton()
isSingleton in interface FactoryBean<ClientResources>isSingleton in class AbstractFactoryBean<ClientResources>Copyright © 2019 lettuce.io. All rights reserved.