Interface Pool<T>

All Known Subinterfaces:
LettucePool
All Known Implementing Classes:
DefaultLettucePool

public interface Pool<T>
Pool of resources
Author:
Jennifer Hickey
  • Method Details

    • 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