Class MemorizingClientSupplier<T extends CloseableClient>

  • All Implemented Interfaces:
    CloseableClient, java.lang.AutoCloseable, java.util.function.Supplier<T>

    public class MemorizingClientSupplier<T extends CloseableClient>
    extends java.lang.Object
    implements java.util.function.Supplier<T>, CloseableClient
    • Constructor Summary

      Constructors 
      Constructor Description
      MemorizingClientSupplier​(java.util.function.Supplier<T> delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      close the client and release its resources.
      T get()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MemorizingClientSupplier

        public MemorizingClientSupplier​(java.util.function.Supplier<T> delegate)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface java.util.function.Supplier<T extends CloseableClient>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • close

        public void close()
        Description copied from interface: CloseableClient
        close the client and release its resources.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface CloseableClient