public class ClientResourcesFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<ClientResources>
FactoryBean that creates a ClientResources instance representing the infrastructure resources (thread pools)
for a Redis Client.| 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).
|
public 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 org.springframework.beans.factory.FactoryBean<ClientResources>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<ClientResources>protected ClientResources createInstance() throws Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<ClientResources>Exceptionprotected void destroyInstance(ClientResources instance) throws Exception
destroyInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<ClientResources>Exceptionpublic boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<ClientResources>isSingleton in class org.springframework.beans.factory.config.AbstractFactoryBean<ClientResources>Copyright © 2016. All rights reserved.