Class CallbackRegistry

    • Method Summary

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

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

      • CallbackRegistry

        public CallbackRegistry()
    • Method Detail

      • addCallback

        public void addCallback​(int id,
                                java.util.function.Consumer<com.google.protobuf.ByteString> consumer,
                                int timeoutMs,
                                java.lang.Runnable timeoutRunnable)
      • performCallback

        public void performCallback​(int id,
                                    com.google.protobuf.ByteString byteString)
      • close

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