| | |
| | | import lombok.NoArgsConstructor; |
| | | import org.redisson.config.ReadMode; |
| | | import org.redisson.config.SubscriptionMode; |
| | | import org.redisson.config.TransportMode; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | * Netty线程池数量,默认值 = 当前处理核数量 * 2 |
| | | */ |
| | | private int nettyThreads; |
| | | |
| | | /** |
| | | * 传输模式 |
| | | */ |
| | | private TransportMode transportMode; |
| | | |
| | | /** |
| | | * 单机服务配置 |
| | |
| | | private int timeout; |
| | | |
| | | /** |
| | | * 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。 |
| | | */ |
| | | private int retryAttempts; |
| | | |
| | | /** |
| | | * 命令重试发送时间间隔,单位:毫秒 |
| | | */ |
| | | private int retryInterval; |
| | | |
| | | /** |
| | | * 发布和订阅连接池大小 |
| | | */ |
| | | private int subscriptionConnectionPoolSize; |
| | |
| | | private int idleConnectionTimeout; |
| | | |
| | | /** |
| | | * ping超时 |
| | | */ |
| | | private int pingConnectionInterval; |
| | | |
| | | /** |
| | | * 命令等待超时,单位:毫秒 |
| | | */ |
| | | private int timeout; |
| | | |
| | | /** |
| | | * 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。 |
| | | */ |
| | | private int retryAttempts; |
| | | |
| | | /** |
| | | * 命令重试发送时间间隔,单位:毫秒 |
| | | */ |
| | | private int retryInterval; |
| | | |
| | | /** |
| | | * 发布和订阅连接池大小 |