public class TracingRedisConnectionFactory extends Object implements org.springframework.data.redis.connection.RedisConnectionFactory, org.springframework.data.redis.connection.ReactiveRedisConnectionFactory
RedisConnectionFactory.
This class delegates invocations to the given RedisConnectionFactory, returning
OpenTracing wrappers for RedisConnection and RedisClusterConnection only.
| Constructor and Description |
|---|
TracingRedisConnectionFactory(org.springframework.data.redis.connection.RedisConnectionFactory delegate,
boolean withActiveSpanOnly,
io.opentracing.Tracer tracer) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.redis.connection.RedisClusterConnection |
getClusterConnection() |
org.springframework.data.redis.connection.RedisConnection |
getConnection() |
boolean |
getConvertPipelineAndTxResults() |
org.springframework.data.redis.connection.ReactiveRedisClusterConnection |
getReactiveClusterConnection() |
org.springframework.data.redis.connection.ReactiveRedisConnection |
getReactiveConnection() |
org.springframework.data.redis.connection.RedisSentinelConnection |
getSentinelConnection() |
org.springframework.dao.DataAccessException |
translateExceptionIfPossible(RuntimeException e) |
public TracingRedisConnectionFactory(org.springframework.data.redis.connection.RedisConnectionFactory delegate,
boolean withActiveSpanOnly,
io.opentracing.Tracer tracer)
public org.springframework.data.redis.connection.RedisConnection getConnection()
getConnection in interface org.springframework.data.redis.connection.RedisConnectionFactorypublic org.springframework.data.redis.connection.RedisClusterConnection getClusterConnection()
getClusterConnection in interface org.springframework.data.redis.connection.RedisConnectionFactorypublic boolean getConvertPipelineAndTxResults()
getConvertPipelineAndTxResults in interface org.springframework.data.redis.connection.RedisConnectionFactorypublic org.springframework.data.redis.connection.RedisSentinelConnection getSentinelConnection()
getSentinelConnection in interface org.springframework.data.redis.connection.RedisConnectionFactorypublic org.springframework.dao.DataAccessException translateExceptionIfPossible(RuntimeException e)
translateExceptionIfPossible in interface org.springframework.dao.support.PersistenceExceptionTranslatorpublic org.springframework.data.redis.connection.ReactiveRedisConnection getReactiveConnection()
getReactiveConnection in interface org.springframework.data.redis.connection.ReactiveRedisConnectionFactorypublic org.springframework.data.redis.connection.ReactiveRedisClusterConnection getReactiveClusterConnection()
getReactiveClusterConnection in interface org.springframework.data.redis.connection.ReactiveRedisConnectionFactoryCopyright © 2017-2019–2019. All rights reserved.