Interface SubscriptionTracker
-
- All Known Implementing Classes:
SubscriptionTrackingInbox
public interface SubscriptionTracker
-
-
Method Summary
Modifier and Type Method Description HandleaddListener(java.util.function.Consumer<StoreEvent<com.google.protobuf.ByteString>> listener)HandleaddOneShotListener(java.util.function.Predicate<StoreEvent<com.google.protobuf.ByteString>> predicate, java.lang.Runnable runnable)default AwaitableaddOneShotSubscriptionListener(com.google.protobuf.ByteString topic)default HandleaddOneShotSubscriptionListener(com.google.protobuf.ByteString topic, java.lang.Runnable runnable)default AwaitableaddOneShotUnsubscriptionListener(com.google.protobuf.ByteString topic)default HandleaddOneShotUnsubscriptionListener(com.google.protobuf.ByteString topic, java.lang.Runnable runnable)java.util.Set<com.google.protobuf.ByteString>getSubscriptions()
-
-
-
Method Detail
-
getSubscriptions
java.util.Set<com.google.protobuf.ByteString> getSubscriptions()
-
addListener
Handle addListener(java.util.function.Consumer<StoreEvent<com.google.protobuf.ByteString>> listener)
-
addOneShotListener
Handle addOneShotListener(java.util.function.Predicate<StoreEvent<com.google.protobuf.ByteString>> predicate, java.lang.Runnable runnable)
-
addOneShotSubscriptionListener
default Handle addOneShotSubscriptionListener(com.google.protobuf.ByteString topic, java.lang.Runnable runnable)
-
addOneShotUnsubscriptionListener
default Handle addOneShotUnsubscriptionListener(com.google.protobuf.ByteString topic, java.lang.Runnable runnable)
-
addOneShotSubscriptionListener
default Awaitable addOneShotSubscriptionListener(com.google.protobuf.ByteString topic)
-
addOneShotUnsubscriptionListener
default Awaitable addOneShotUnsubscriptionListener(com.google.protobuf.ByteString topic)
-
-