Interface LocalConnectionCache


  • public interface LocalConnectionCache
    Implementations of ConnectionCache that rely on ThreadLocal.
    Author:
    Luis Barreiro
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static ConnectionCache fixed​(int size)
      A local cache that stores up to a number of connections.
      static ConnectionCache full()
      A local cache that stores all connections
      static ConnectionCache single()
      A local cache that stores at most a single connection.
    • Method Detail

      • single

        static ConnectionCache single()
        A local cache that stores at most a single connection.
      • fixed

        static ConnectionCache fixed​(int size)
        A local cache that stores up to a number of connections.
      • full

        static ConnectionCache full()
        A local cache that stores all connections