Class TransportLogger

  • All Implemented Interfaces:
    Transport

    class TransportLogger
    extends java.lang.Object
    implements Transport
    • 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

      • transport

        private final Transport transport
    • Constructor Detail

      • TransportLogger

        TransportLogger​(Transport transport)
    • 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