Class PipeTransport

  • All Implemented Interfaces:
    Transport

    public class PipeTransport
    extends java.lang.Object
    implements Transport
    • Constructor Summary

      Constructors 
      Constructor Description
      PipeTransport​(java.io.InputStream input, java.io.OutputStream output)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      com.google.gson.JsonObject poll​(java.time.Duration timeout)  
      void send​(com.google.gson.JsonObject message)  
      • Methods inherited from class java.lang.Object

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

      • incoming

        private final java.util.concurrent.BlockingQueue<com.google.gson.JsonObject> incoming
      • outgoing

        private final java.util.concurrent.BlockingQueue<java.lang.String> outgoing
      • isClosed

        private boolean isClosed
    • Constructor Detail

      • PipeTransport

        PipeTransport​(java.io.InputStream input,
                      java.io.OutputStream output)
    • Method Detail

      • send

        public void send​(com.google.gson.JsonObject message)
        Specified by:
        send in interface Transport
      • poll

        public com.google.gson.JsonObject poll​(java.time.Duration timeout)
        Specified by:
        poll in interface Transport
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface Transport
        Throws:
        java.io.IOException