Interface JedisCommandsInstanceContainer

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
JedisClusterContainer, JedisContainer

public interface JedisCommandsInstanceContainer extends Closeable
Interfaces for containers which stores instances implementing JedisCommands.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Release Container.
    redis.clients.jedis.JedisCommands
    Borrows instance from container.
    void
    returnInstance(redis.clients.jedis.JedisCommands jedisCommands)
    Returns instance to container.
  • Method Details

    • getInstance

      redis.clients.jedis.JedisCommands getInstance()
      Borrows instance from container.
      Returns:
      instance which implements JedisCommands
    • returnInstance

      void returnInstance(redis.clients.jedis.JedisCommands jedisCommands)
      Returns instance to container.
      Parameters:
      jedisCommands - borrowed instance
    • close

      void close()
      Release Container.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable