Package com.netflix.spinnaker.kork.jedis
Class JedisClientDelegate
- java.lang.Object
-
- com.netflix.spinnaker.kork.jedis.JedisClientDelegate
-
- All Implemented Interfaces:
RedisClientDelegate
public class JedisClientDelegate extends java.lang.Object implements RedisClientDelegate
-
-
Constructor Summary
Constructors Constructor Description JedisClientDelegate(java.lang.String name, redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> jedisPool)JedisClientDelegate(redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> jedisPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringname()booleansupportsMultiKeyPipelines()booleansupportsScripting()booleansupportsTransactions()voidsyncPipeline(redis.clients.jedis.commands.RedisPipeline p)voidwithBinaryClient(java.util.function.Consumer<redis.clients.jedis.commands.BinaryJedisCommands> f)<R> RwithBinaryClient(java.util.function.Function<redis.clients.jedis.commands.BinaryJedisCommands,R> f)voidwithCommandsClient(java.util.function.Consumer<redis.clients.jedis.commands.JedisCommands> f)<R> RwithCommandsClient(java.util.function.Function<redis.clients.jedis.commands.JedisCommands,R> f)voidwithKeyScan(java.lang.String pattern, int count, java.util.function.Consumer<RedisScanResult> f)voidwithMultiClient(java.util.function.Consumer<redis.clients.jedis.commands.MultiKeyCommands> f)<R> RwithMultiClient(java.util.function.Function<redis.clients.jedis.commands.MultiKeyCommands,R> f)voidwithMultiKeyPipeline(java.util.function.Consumer<redis.clients.jedis.Pipeline> f)<R> RwithMultiKeyPipeline(java.util.function.Function<redis.clients.jedis.Pipeline,R> f)voidwithPipeline(java.util.function.Consumer<redis.clients.jedis.commands.RedisPipeline> f)<R> RwithPipeline(java.util.function.Function<redis.clients.jedis.commands.RedisPipeline,R> f)voidwithScriptingClient(java.util.function.Consumer<redis.clients.jedis.commands.ScriptingCommands> f)<R> RwithScriptingClient(java.util.function.Function<redis.clients.jedis.commands.ScriptingCommands,R> f)voidwithTransaction(java.util.function.Consumer<redis.clients.jedis.Transaction> f)<R> RwithTransaction(java.util.function.Function<redis.clients.jedis.Transaction,R> f)
-
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
namein interfaceRedisClientDelegate
-
withCommandsClient
public <R> R withCommandsClient(java.util.function.Function<redis.clients.jedis.commands.JedisCommands,R> f)
- Specified by:
withCommandsClientin interfaceRedisClientDelegate
-
withCommandsClient
public void withCommandsClient(java.util.function.Consumer<redis.clients.jedis.commands.JedisCommands> f)
- Specified by:
withCommandsClientin interfaceRedisClientDelegate
-
withMultiClient
public <R> R withMultiClient(java.util.function.Function<redis.clients.jedis.commands.MultiKeyCommands,R> f)
- Specified by:
withMultiClientin interfaceRedisClientDelegate
-
withMultiClient
public void withMultiClient(java.util.function.Consumer<redis.clients.jedis.commands.MultiKeyCommands> f)
- Specified by:
withMultiClientin interfaceRedisClientDelegate
-
withBinaryClient
public <R> R withBinaryClient(java.util.function.Function<redis.clients.jedis.commands.BinaryJedisCommands,R> f)
- Specified by:
withBinaryClientin interfaceRedisClientDelegate
-
withBinaryClient
public void withBinaryClient(java.util.function.Consumer<redis.clients.jedis.commands.BinaryJedisCommands> f)
- Specified by:
withBinaryClientin interfaceRedisClientDelegate
-
withPipeline
public void withPipeline(java.util.function.Consumer<redis.clients.jedis.commands.RedisPipeline> f)
- Specified by:
withPipelinein interfaceRedisClientDelegate
-
withPipeline
public <R> R withPipeline(java.util.function.Function<redis.clients.jedis.commands.RedisPipeline,R> f)
- Specified by:
withPipelinein interfaceRedisClientDelegate
-
syncPipeline
public void syncPipeline(redis.clients.jedis.commands.RedisPipeline p)
- Specified by:
syncPipelinein interfaceRedisClientDelegate
-
supportsMultiKeyPipelines
public boolean supportsMultiKeyPipelines()
- Specified by:
supportsMultiKeyPipelinesin interfaceRedisClientDelegate
-
withMultiKeyPipeline
public void withMultiKeyPipeline(java.util.function.Consumer<redis.clients.jedis.Pipeline> f)
- Specified by:
withMultiKeyPipelinein interfaceRedisClientDelegate
-
withMultiKeyPipeline
public <R> R withMultiKeyPipeline(java.util.function.Function<redis.clients.jedis.Pipeline,R> f)
- Specified by:
withMultiKeyPipelinein interfaceRedisClientDelegate
-
supportsTransactions
public boolean supportsTransactions()
- Specified by:
supportsTransactionsin interfaceRedisClientDelegate
-
withTransaction
public void withTransaction(java.util.function.Consumer<redis.clients.jedis.Transaction> f)
- Specified by:
withTransactionin interfaceRedisClientDelegate
-
withTransaction
public <R> R withTransaction(java.util.function.Function<redis.clients.jedis.Transaction,R> f)
- Specified by:
withTransactionin interfaceRedisClientDelegate
-
supportsScripting
public boolean supportsScripting()
- Specified by:
supportsScriptingin interfaceRedisClientDelegate
-
withScriptingClient
public void withScriptingClient(java.util.function.Consumer<redis.clients.jedis.commands.ScriptingCommands> f)
- Specified by:
withScriptingClientin interfaceRedisClientDelegate
-
withScriptingClient
public <R> R withScriptingClient(java.util.function.Function<redis.clients.jedis.commands.ScriptingCommands,R> f)
- Specified by:
withScriptingClientin interfaceRedisClientDelegate
-
withKeyScan
public void withKeyScan(java.lang.String pattern, int count, java.util.function.Consumer<RedisScanResult> f)- Specified by:
withKeyScanin interfaceRedisClientDelegate
-
-