Class ImmediatePooled<T>

  • All Implemented Interfaces:
    AutoCloseable, org.xnio.Pooled<T>

    public class ImmediatePooled<T>
    extends Object
    implements org.xnio.Pooled<T>
    Wrapper that allows you to use a non-pooed item as a pooled value
    Stuart Douglas
    • Constructor Detail

      • ImmediatePooled

        public ImmediatePooled​(T value)
    • Method Detail

      • discard

        public void discard()
        Specified by:
        discard in interface org.xnio.Pooled<T>
      • free

        public void free()
        Specified by:
        free in interface org.xnio.Pooled<T>
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface org.xnio.Pooled<T>