org.apache.storm.redis.common.container

## 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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Release Container.
    `redis.clients.jedis.JedisCommands` | `getInstance()` Borrows instance from container.
    `void` | `returnInstance(redis.clients.jedis.JedisCommands jedisCommands)` Returns instance to container.

- - ### Method Detail

    - #### 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`

Copyright © 2019 The Apache Software Foundation. All rights reserved.