Class Proxy2StreamRef

  • All Implemented Interfaces:
    com.webpieces.http2.api.streaming.StreamRef

    public class Proxy2StreamRef
    extends java.lang.Object
    implements com.webpieces.http2.api.streaming.StreamRef
    • Constructor Summary

      Constructors 
      Constructor Description
      Proxy2StreamRef​(com.webpieces.http2.api.streaming.StreamRef ref, java.util.concurrent.CompletableFuture<com.webpieces.http2.api.streaming.StreamWriter> writer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Void> cancel​(com.webpieces.http2.api.dto.lowlevel.CancelReason reason)  
      java.util.concurrent.CompletableFuture<com.webpieces.http2.api.streaming.StreamWriter> getWriter()  
      • Methods inherited from class java.lang.Object

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

      • Proxy2StreamRef

        public Proxy2StreamRef​(com.webpieces.http2.api.streaming.StreamRef ref,
                               java.util.concurrent.CompletableFuture<com.webpieces.http2.api.streaming.StreamWriter> writer)
    • Method Detail

      • getWriter

        public java.util.concurrent.CompletableFuture<com.webpieces.http2.api.streaming.StreamWriter> getWriter()
        Specified by:
        getWriter in interface com.webpieces.http2.api.streaming.StreamRef
      • cancel

        public java.util.concurrent.CompletableFuture<java.lang.Void> cancel​(com.webpieces.http2.api.dto.lowlevel.CancelReason reason)
        Specified by:
        cancel in interface com.webpieces.http2.api.streaming.StreamRef