Class Layer1Incoming

  • All Implemented Interfaces:
    org.webpieces.nio.api.handlers.DataListener

    public class Layer1Incoming
    extends java.lang.Object
    implements org.webpieces.nio.api.handlers.DataListener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void failure​(org.webpieces.nio.api.channels.Channel channel, java.nio.ByteBuffer data, java.lang.Exception e)  
      void farEndClosed​(org.webpieces.nio.api.channels.Channel channel)  
      java.util.concurrent.CompletableFuture<java.lang.Void> incomingData​(org.webpieces.nio.api.channels.Channel channel, java.nio.ByteBuffer b)  
      com.webpieces.http2.api.streaming.RequestStreamHandle openStream()  
      java.util.concurrent.CompletableFuture<java.lang.Void> sendInitialFrames()  
      java.util.concurrent.CompletableFuture<java.lang.Void> sendPing()  
      • Methods inherited from class java.lang.Object

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

      • Layer1Incoming

        public Layer1Incoming​(com.webpieces.http2engine.api.client.Http2ClientEngine layer2,
                              Http2SocketListener socketListener,
                              Http2Socket socket)
    • Method Detail

      • sendInitialFrames

        public java.util.concurrent.CompletableFuture<java.lang.Void> sendInitialFrames()
      • sendPing

        public java.util.concurrent.CompletableFuture<java.lang.Void> sendPing()
      • openStream

        public com.webpieces.http2.api.streaming.RequestStreamHandle openStream()
      • incomingData

        public java.util.concurrent.CompletableFuture<java.lang.Void> incomingData​(org.webpieces.nio.api.channels.Channel channel,
                                                                                   java.nio.ByteBuffer b)
        Specified by:
        incomingData in interface org.webpieces.nio.api.handlers.DataListener
      • farEndClosed

        public void farEndClosed​(org.webpieces.nio.api.channels.Channel channel)
        Specified by:
        farEndClosed in interface org.webpieces.nio.api.handlers.DataListener
      • failure

        public void failure​(org.webpieces.nio.api.channels.Channel channel,
                            java.nio.ByteBuffer data,
                            java.lang.Exception e)
        Specified by:
        failure in interface org.webpieces.nio.api.handlers.DataListener