Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.data.redis.connection
Interface Pool<T>

All Known Subinterfaces:
  LettucePool

All Known Implementing Classes:
  DefaultLettucePool, JredisPool

    public interface Pool<T>

Pool of resources

Method Summary
`void` | `destroy()` Destroys the pool
`T` | `getResource()`
`void` | `returnBrokenResource(T resource)`
`void` | `returnResource(T resource)`

Method Detail

### getResource

    T getResource()

  Returns:
    A resource, if available

### returnBrokenResource

    void returnBrokenResource(T resource)

  Parameters:
    `resource` - A broken resource that should be invalidated

### returnResource

    void returnResource(T resource)

  Parameters:
    `resource` - A resource to return to the pool

### destroy

    void destroy()

  Destroys the pool

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD