Class SubscriptionAgent


  • public class SubscriptionAgent
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      Handle addSubscriber​(com.google.protobuf.ByteString topic, java.util.function.BiConsumer<com.google.protobuf.ByteString,​com.google.protobuf.ByteString> messageHandler, java.util.concurrent.Executor executor)  
      Handle addSubscriber​(com.google.protobuf.ByteString topic, java.util.function.Predicate<com.google.protobuf.ByteString> filter, java.util.function.BiConsumer<com.google.protobuf.ByteString,​com.google.protobuf.ByteString> messageHandler, java.util.concurrent.Executor executor)  
      Handle addSubscriber​(java.util.Set<com.google.protobuf.ByteString> topics, java.util.function.Predicate<com.google.protobuf.ByteString> filter, java.util.function.BiConsumer<com.google.protobuf.ByteString,​com.google.protobuf.ByteString> messageHandler, java.util.concurrent.Executor handlerExecutor)  
      static SubscriptionAgent create​(PubSubConnection pubSubConnection)  
      • Methods inherited from class java.lang.Object

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

      • addSubscriber

        public Handle addSubscriber​(java.util.Set<com.google.protobuf.ByteString> topics,
                                    java.util.function.Predicate<com.google.protobuf.ByteString> filter,
                                    java.util.function.BiConsumer<com.google.protobuf.ByteString,​com.google.protobuf.ByteString> messageHandler,
                                    java.util.concurrent.Executor handlerExecutor)
      • addSubscriber

        public Handle addSubscriber​(com.google.protobuf.ByteString topic,
                                    java.util.function.Predicate<com.google.protobuf.ByteString> filter,
                                    java.util.function.BiConsumer<com.google.protobuf.ByteString,​com.google.protobuf.ByteString> messageHandler,
                                    java.util.concurrent.Executor executor)
      • addSubscriber

        public Handle addSubscriber​(com.google.protobuf.ByteString topic,
                                    java.util.function.BiConsumer<com.google.protobuf.ByteString,​com.google.protobuf.ByteString> messageHandler,
                                    java.util.concurrent.Executor executor)