Class Recycler.Recyclable

    • Constructor Detail

      • Recyclable

        public Recyclable()
                   throws E extends Exception
        Acquire or allocate an instance.
        Throws:
        E - If an exception of type E was thrown during instantiation.
        E extends Exception
    • Method Detail

      • get

        public T get()
        Returns:
        The new or recycled object instance.
      • close

        public void close()
        Release/recycle an instance.
        Specified by:
        close in interface AutoCloseable