List of usage examples for org.springframework.data.redis.core RedisConnectionUtils bindConnection
public static RedisConnection bindConnection(RedisConnectionFactory factory)
From source file:org.springframework.integration.redis.outbound.RedisCollectionPopulatingMessageHandler.java
private void processInPipeline(PipelineCallback callback) { RedisConnection connection = RedisConnectionUtils.bindConnection(redisTemplate.getConnectionFactory()); try {//from w w w .jav a2 s. c om connection.openPipeline(); callback.process(); } finally { connection.closePipeline(); RedisConnectionUtils.unbindConnection(redisTemplate.getConnectionFactory()); } }