Class JsonPipe

    • Constructor Detail

      • JsonPipe

        JsonPipe​(ChannelOwner parent,
                 java.lang.String type,
                 java.lang.String guid,
                 com.google.gson.JsonObject initializer)
    • 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
      • onClose

        void onClose​(java.util.function.Consumer<JsonPipe> handler)
      • offClose

        void offClose​(java.util.function.Consumer<JsonPipe> handler)
      • handleEvent

        protected void handleEvent​(java.lang.String event,
                                   com.google.gson.JsonObject params)
        Overrides:
        handleEvent in class ChannelOwner
      • checkIfClosed

        private void checkIfClosed()