@ConfigurationProperties(value="spring.thrift.client.pool") public class ThriftClientPoolProperties extends Object
| 构造器和说明 |
|---|
ThriftClientPoolProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getConnectTimeout() |
int |
getPoolMaxIdlePerKey() |
int |
getPoolMaxTotalPerKey() |
long |
getPoolMaxWait() |
int |
getPoolMinIdlePerKey() |
int |
getRetryTimes() |
boolean |
isTestOnBorrow() |
boolean |
isTestOnCreate() |
boolean |
isTestOnReturn() |
boolean |
isTestWhileIdle() |
void |
setConnectTimeout(int connectTimeout) |
void |
setPoolMaxIdlePerKey(int poolMaxIdlePerKey) |
void |
setPoolMaxTotalPerKey(int poolMaxTotalPerKey) |
void |
setPoolMaxWait(long poolMaxWait) |
void |
setPoolMinIdlePerKey(int poolMinIdlePerKey) |
void |
setRetryTimes(int retryTimes) |
void |
setTestOnBorrow(boolean testOnBorrow) |
void |
setTestOnCreate(boolean testOnCreate) |
void |
setTestOnReturn(boolean testOnReturn) |
void |
setTestWhileIdle(boolean testWhileIdle) |
public int getRetryTimes()
public void setRetryTimes(int retryTimes)
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public int getPoolMaxTotalPerKey()
public void setPoolMaxTotalPerKey(int poolMaxTotalPerKey)
public int getPoolMaxIdlePerKey()
public void setPoolMaxIdlePerKey(int poolMaxIdlePerKey)
public int getPoolMinIdlePerKey()
public void setPoolMinIdlePerKey(int poolMinIdlePerKey)
public long getPoolMaxWait()
public void setPoolMaxWait(long poolMaxWait)
public boolean isTestOnCreate()
public void setTestOnCreate(boolean testOnCreate)
public boolean isTestOnBorrow()
public void setTestOnBorrow(boolean testOnBorrow)
public boolean isTestOnReturn()
public void setTestOnReturn(boolean testOnReturn)
public boolean isTestWhileIdle()
public void setTestWhileIdle(boolean testWhileIdle)
Copyright © 2021. All rights reserved.