@Deprecated 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()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected ClientResources |
createInstance()
Deprecated.
|
protected void |
destroyInstance(ClientResources instance)
Deprecated.
|
int |
getComputationThreadPoolSize()
Deprecated.
|
int |
getIoThreadPoolSize()
Deprecated.
|
Class<?> |
getObjectType()
Deprecated.
|
boolean |
isSingleton()
Deprecated.
|
void |
setComputationThreadPoolSize(int computationThreadPoolSize)
Deprecated.
Sets the thread pool size (number of threads to use) for computation operations (default value is the number of CPUs).
|
void |
setIoThreadPoolSize(int ioThreadPoolSize)
Deprecated.
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, setSingleton
public int getIoThreadPoolSize()
public void setIoThreadPoolSize(int ioThreadPoolSize)
ioThreadPoolSize
- the thread pool size.public int getComputationThreadPoolSize()
public void setComputationThreadPoolSize(int computationThreadPoolSize)
computationThreadPoolSize
- the thread pool size.public Class<?> getObjectType()
getObjectType
in interface FactoryBean<ClientResources>
getObjectType
in class AbstractFactoryBean<ClientResources>
protected ClientResources createInstance() throws Exception
createInstance
in class AbstractFactoryBean<ClientResources>
Exception
protected void destroyInstance(ClientResources instance) throws Exception
destroyInstance
in class AbstractFactoryBean<ClientResources>
Exception
public boolean isSingleton()
isSingleton
in interface FactoryBean<ClientResources>
isSingleton
in class AbstractFactoryBean<ClientResources>
Copyright © 2020 lettuce.io. All rights reserved.