Package glide.api.models.configuration
Interface PubSubState<T extends BaseSubscriptionConfiguration.ChannelMode>
-
- Type Parameters:
T- The channel mode type (e.g., PubSubChannelMode or PubSubClusterChannelMode)
- All Known Implementing Classes:
PubSubStateImpl
public interface PubSubState<T extends BaseSubscriptionConfiguration.ChannelMode>Represents the subscription state for a pubsub client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<T,java.util.Set<java.lang.String>>getActualSubscriptions()Gets the actual subscription state.java.util.Map<T,java.util.Set<java.lang.String>>getDesiredSubscriptions()Gets the desired subscription state.
-
-
-
Method Detail
-
getDesiredSubscriptions
java.util.Map<T,java.util.Set<java.lang.String>> getDesiredSubscriptions()
Gets the desired subscription state.- Returns:
- Map of channel modes to their subscribed channels
-
getActualSubscriptions
java.util.Map<T,java.util.Set<java.lang.String>> getActualSubscriptions()
Gets the actual subscription state.- Returns:
- Map of channel modes to their subscribed channels
-
-