Class Proxy

    • Constructor Summary

      Constructors 
      Constructor Description
      Proxy​(org.webpieces.nio.api.channels.TCPChannel channel)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Void> close()  
      java.util.concurrent.CompletableFuture<java.lang.Void> connect​(java.net.InetSocketAddress addr, org.webpieces.nio.api.handlers.DataListener dataListener)  
      java.lang.String getId()  
      boolean isSecure()  
      java.util.concurrent.CompletableFuture<java.lang.Void> write​(java.nio.ByteBuffer wrap)  
      • Methods inherited from class java.lang.Object

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

      • Proxy

        public Proxy​(org.webpieces.nio.api.channels.TCPChannel channel)
    • Method Detail

      • connect

        public java.util.concurrent.CompletableFuture<java.lang.Void> connect​(java.net.InetSocketAddress addr,
                                                                              org.webpieces.nio.api.handlers.DataListener dataListener)
        Specified by:
        connect in interface ChannelProxy
      • write

        public java.util.concurrent.CompletableFuture<java.lang.Void> write​(java.nio.ByteBuffer wrap)
        Specified by:
        write in interface ChannelProxy
      • close

        public java.util.concurrent.CompletableFuture<java.lang.Void> close()
        Specified by:
        close in interface ChannelProxy
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface ChannelProxy