Class AbstractStreamAwareProxy

    • Constructor Detail

      • AbstractStreamAwareProxy

        public AbstractStreamAwareProxy()
    • Method Detail

      • getStream

        protected abstract Closeable getStream()
        Returns:
        Closeable instance which represents channel or stream which uses channel
      • canBeClosed

        protected abstract boolean canBeClosed()
        Returns:
        Boolean value which determines whether stream can (true) or cannot ((false)) be closed
      • release

        public void release()
        Encapsulates the logic of releasing the captured stream or channel. It is expected that each resource object shares the same channel