Class SimpleClient

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleClient​(PubSubConnection pubSubConnection, com.google.protobuf.ByteString replyTopic, java.util.concurrent.Executor executor)  
    • Method Summary

      Modifier and Type Method Description
      void close()  
      void send​(com.google.protobuf.ByteString targetTopic, com.google.protobuf.ByteString payload, java.util.function.Consumer<com.google.protobuf.ByteString> consumer, int timeoutMs, java.lang.Runnable timeoutRunnable)  
      • Methods inherited from class java.lang.Object

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

      • SimpleClient

        public SimpleClient​(PubSubConnection pubSubConnection,
                            com.google.protobuf.ByteString replyTopic,
                            java.util.concurrent.Executor executor)
    • Method Detail

      • send

        public void send​(com.google.protobuf.ByteString targetTopic,
                         com.google.protobuf.ByteString payload,
                         java.util.function.Consumer<com.google.protobuf.ByteString> consumer,
                         int timeoutMs,
                         java.lang.Runnable timeoutRunnable)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface NotThrowingAutoCloseable